Skip to content

Commit

Permalink
improved ui
Browse files Browse the repository at this point in the history
  • Loading branch information
LennyPenny committed Jun 19, 2016
1 parent aac62b7 commit 18711d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions csgo-AutoDemo/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:csgo_AutoDemo"
mc:Ignorable="d"
Title="CS:GO AutoDemo" Height="500" Width="350" Icon="pack://siteoforigin:,,,/csgo-AutoDemo.ico">
Title="CS:GO AutoDemo" Height="279" Width="350" Icon="pack://siteoforigin:,,,/csgo-AutoDemo.ico">
<Grid Margin="5,10,5,5">
<Button x:Name="Enabler" Content="Disable&#xD;&#xA;auto-record" VerticalAlignment="Bottom" Click="button_Click" Height="45" HorizontalAlignment="Right" Width="100"/>
<TextBox x:Name="DebugOutput" Height="150" Margin="0,249,0,0" TextWrapping="Wrap" Text="Starting up..." VerticalAlignment="Top" IsReadOnly="True" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Visible"/>
<TextBox x:Name="DebugOutput" Height="150" Margin="0,26,0,0" TextWrapping="Wrap" Text="Starting up..." VerticalAlignment="Top" IsReadOnly="True" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Visible"/>
<Button x:Name="Record_Button" Content="Record" HorizontalAlignment="Left" Width="218" HorizontalContentAlignment="Center" Click="Record_Button_Click" VerticalAlignment="Bottom" Height="45"/>
<CheckBox x:Name="StartWithWindows_checkBox" Content="Start with Windows&#xD;&#xA;" HorizontalAlignment="Left" Margin="0,229,0,0" VerticalAlignment="Top" Checked="StartWithWindows_checkBox_Checked" Unchecked="StartWithWindows_checkBox_UnChecked" Initialized="StartWithWindows_checkBox_Initialized"/>
<CheckBox x:Name="StartWithWindows_checkBox" Content="Start with Windows&#xD;&#xA;" HorizontalAlignment="Left" VerticalAlignment="Top" Checked="StartWithWindows_checkBox_Checked" Unchecked="StartWithWindows_checkBox_UnChecked" Initialized="StartWithWindows_checkBox_Initialized" Height="26"/>
</Grid>
</Window>
4 changes: 2 additions & 2 deletions csgo-AutoDemo/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,14 @@ private void button_Click(object sender, RoutedEventArgs e)
if (enabled)
{
gsl.NewGameState -= OnNewGameState;
Enabler.Content = "Enable";
Enabler.Content = Enabler.Content.ToString().Replace("Disable", "Enable");

Log("Stopped listening");
}
else
{
gsl.NewGameState += OnNewGameState;
Enabler.Content = "Disable";
Enabler.Content = Enabler.Content.ToString().Replace("Enable", "Disable");
Log("Started listening");
}
enabled = !enabled;
Expand Down

0 comments on commit 18711d8

Please sign in to comment.