Files
AudioBotProject/MainWindow.xaml
tkrmagid-notbook 9d14827e83 1차 제작
기능은 다 만들었는데 테스트를 못해봄
그래서 잘 작동하는지 모름
집가서 테스트해봐야지
2026-04-14 14:45:41 +09:00

88 lines
5.4 KiB
XML

<Window x:Class="AudioBotProject.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="디스코드 오디오 라우터" Height="450" Width="400"
Closing="Window_Closing">
<Grid>
<Grid x:Name="MainView" Visibility="Visible" Margin="20">
<StackPanel>
<TextBlock x:Name="CurrentBotNameText" Text="현재 실행중인 봇: 없음" FontWeight="Bold" Foreground="Blue" Margin="0,0,0,15"/>
<Button Content="⚙️ 봇 설정" Height="35" Margin="0,0,0,10" Click="Nav_BotSettings_Click"/>
<Button x:Name="NavChannelSettingsBtn" Content="🎧 채널 설정" Height="35" Margin="0,0,0,10" IsEnabled="False" Click="Nav_ChannelSettings_Click"/>
<Button Content="🎛️ 출력 설정" Height="35" Margin="0,0,0,10" Click="Nav_OutputSettings_Click"/>
<Button x:Name="MainStartRoutingBtn" Content="🚀 시작" Height="40" Background="#FF5865F2" Foreground="White" FontWeight="Bold" Margin="0,15,0,10" Click="MainStartRoutingBtn_Click"/>
<TextBlock Text="로그 출력:" FontWeight="Bold" Margin="0,0,0,5"/>
<TextBox x:Name="MainLogBox" Height="100" IsReadOnly="True" VerticalScrollBarVisibility="Auto" TextWrapping="Wrap"/>
</StackPanel>
</Grid>
<Grid x:Name="BotSettingsView" Visibility="Collapsed" Margin="20" Background="White">
<StackPanel>
<Button Content="⬅️ 뒤로가기" Width="80" HorizontalAlignment="Left" Margin="0,0,0,15" Click="Nav_BackToMain_Click"/>
<TextBlock Text="봇 토큰 입력:" FontWeight="Bold" Margin="0,0,0,5"/>
<TextBox x:Name="TokenTextBox" Height="25" Margin="0,0,0,10" />
<Button x:Name="BotToggleBtn" Content="봇 실행" Height="35" Margin="0,0,0,15" Click="BotToggleBtn_Click"/>
<TextBlock Text="실행 결과:" FontWeight="Bold" Margin="0,0,0,5"/>
<TextBlock x:Name="BotResultText" Text="대기 중..." Foreground="Gray" TextWrapping="Wrap"/>
</StackPanel>
</Grid>
<Grid x:Name="ChannelSettingsView" Visibility="Collapsed" Margin="20" Background="White">
<StackPanel>
<Button Content="⬅️ 뒤로가기" Width="80" HorizontalAlignment="Left" Margin="0,0,0,15" Click="Nav_BackToMain_Click"/>
<TextBlock Text="서버 선택:" FontWeight="Bold" Margin="0,0,0,5"/>
<ComboBox x:Name="ServerComboBox" Height="25" Margin="0,0,0,10" DropDownOpened="ServerComboBox_DropDownOpened" SelectionChanged="ServerComboBox_SelectionChanged"/>
<TextBlock Text="채널 선택:" FontWeight="Bold" Margin="0,0,0,5"/>
<ComboBox x:Name="ChannelComboBox" Height="25" Margin="0,0,0,15" IsEnabled="False" DropDownOpened="ChannelComboBox_DropDownOpened"/>
<Button x:Name="ChannelToggleBtn" Content="채널 접속" Height="35" Margin="0,0,0,15" Click="ChannelToggleBtn_Click"/>
<TextBlock Text="접속 결과:" FontWeight="Bold" Margin="0,0,0,5"/>
<TextBlock x:Name="ChannelResultText" Text="대기 중..." Foreground="Gray" TextWrapping="Wrap"/>
</StackPanel>
</Grid>
<Grid x:Name="OutputSettingsView" Visibility="Collapsed" Margin="20" Background="White">
<StackPanel>
<Button Content="⬅️ 뒤로가기" Width="80" HorizontalAlignment="Left" Margin="0,0,0,15" Click="Nav_BackToMain_Click"/>
<TextBlock Text="현재 실행중인 앱 선택:" FontWeight="Bold" Margin="0,0,0,5"/>
<Grid Margin="0,0,0,10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="80"/>
</Grid.ColumnDefinitions>
<ComboBox x:Name="ProcessComboBox" Grid.Column="0" Height="25" Margin="0,0,5,0" DropDownOpened="ProcessComboBox_DropDownOpened"/>
<Button Content="추가" Grid.Column="1" Height="25" Click="AddOutputAppBtn_Click"/>
</Grid>
<TextBlock Text="출력할 앱 목록:" FontWeight="Bold" Margin="0,0,0,5"/>
<ListBox x:Name="SelectedAppsListBox" Height="120" Margin="0,0,0,15">
<ListBox.ItemTemplate>
<DataTemplate>
<Grid Margin="0,2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="200"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Text="{Binding}" Grid.Column="0" VerticalAlignment="Center"/>
<Button Content="삭제" Grid.Column="1" Width="50" HorizontalAlignment="Right" Click="RemoveAppBtn_Click" Tag="{Binding}"/>
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<Button Content="💾 설정 저장" Height="35" Click="SaveOutputSettingsBtn_Click"/>
</StackPanel>
</Grid>
</Grid>
</Window>