Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
NiekNijland committed May 2, 2021
1 parent dc7869d commit 1ea8ab0
Show file tree
Hide file tree
Showing 19 changed files with 145 additions and 85 deletions.
Binary file modified .vs/CsgoTranslator/v16/.suo
Binary file not shown.
13 changes: 9 additions & 4 deletions CsgoTranslator/OptionsWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,18 @@
<Label Content="Install location:" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,11,0,0"/>
<TextBox x:Name="TbFolderPath" HorizontalAlignment="Left" Height="23" Margin="104,15,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="542"/>

<Label Content="Language:" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,46,0,0"/>
<TextBox x:Name="TbLang" HorizontalAlignment="Left" Height="23" Margin="104,50,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="542"/>

<Label Content="Language code:" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,46,0,0"/>
<TextBox x:Name="TbLang" HorizontalAlignment="Left" Height="23" Margin="104,50,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="198"/>
<TextBlock Grid.Column="0" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="310,53,0,0" Height="22">
<Hyperlink NavigateUri="https://cloud.google.com/translate/docs/languages" RequestNavigate="Hyperlink_RequestNavigate">
<Run Text="View list of language codes"/>
<InlineUIContainer />
</Hyperlink>
</TextBlock>
<Label Content="Own username:" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,81,0,0"/>
<TextBox x:Name="TbOwnUsername" TextChanged="TbOwnUsername_TextChanged" HorizontalAlignment="Left" Height="23" Margin="104,85,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="542"/>
<Label Content="Required for ignoring own messages and allowing commands from self" HorizontalAlignment="Left" Margin="102,102,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="10"/>

<Label Content="Ignore own messages:" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,132,0,0"/>
<CheckBox x:Name="CbIgnoreOwnMessages" HorizontalAlignment="Left" Margin="143,138,0,0" VerticalAlignment="Top"/>

Expand Down
8 changes: 8 additions & 0 deletions CsgoTranslator/OptionsWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
using System;
using System.Diagnostics;
using System.Text.RegularExpressions;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Navigation;
using CsgoTranslator.Enums;
using CsgoTranslator.Helpers;
using CsgoTranslator.MinimalisticTelnet;
Expand Down Expand Up @@ -187,5 +189,11 @@ private void TbOwnUsername_TextChanged(object sender, TextChangedEventArgs e)
RbCommandsTeam.IsChecked = true;
}
}

private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e)
{
Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));
e.Handled = true;
}
}
}
Binary file modified CsgoTranslator/bin/Release/CsgoTranslator.exe
Binary file not shown.
Binary file modified CsgoTranslator/bin/Release/CsgoTranslator.pdb
Binary file not shown.
Binary file not shown.
Binary file modified CsgoTranslator/obj/Release/CsgoTranslator.g.resources
Binary file not shown.
Binary file modified CsgoTranslator/obj/Release/CsgoTranslator.pdb
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ C:\Users\Niek Nijland\source\repos\CSGO-Translator\CsgoTranslator\App.xaml
12613261466
MainWindow.xaml;OptionsWindow.xaml;

False
True

Binary file not shown.
60 changes: 34 additions & 26 deletions CsgoTranslator/obj/Release/OptionsWindow.g.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma checksum "..\..\OptionsWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "E52AD0137122CDAD73210A65D44186FC8F3784AAA18AFCCFB891893424B17911"
#pragma checksum "..\..\OptionsWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "DDBD597FFB7983A7C572534E1536062B63320E80DF1BC3A1EA19BE2EF0BC6E84"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
Expand Down Expand Up @@ -57,79 +57,79 @@ public partial class OptionsWindow : System.Windows.Window, System.Windows.Marku
#line hidden


#line 17 "..\..\OptionsWindow.xaml"
#line 22 "..\..\OptionsWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox TbOwnUsername;

#line default
#line hidden


#line 21 "..\..\OptionsWindow.xaml"
#line 26 "..\..\OptionsWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox CbIgnoreOwnMessages;

#line default
#line hidden


#line 27 "..\..\OptionsWindow.xaml"
#line 32 "..\..\OptionsWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox CbTransFromAll;

#line default
#line hidden


#line 28 "..\..\OptionsWindow.xaml"
#line 33 "..\..\OptionsWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox CbTransFromTeam;

#line default
#line hidden


#line 31 "..\..\OptionsWindow.xaml"
#line 36 "..\..\OptionsWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.RadioButton RbTransToAll;

#line default
#line hidden


#line 32 "..\..\OptionsWindow.xaml"
#line 37 "..\..\OptionsWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.RadioButton RbTransToTeam;

#line default
#line hidden


#line 35 "..\..\OptionsWindow.xaml"
#line 40 "..\..\OptionsWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox TbTelnetPort;

#line default
#line hidden


#line 38 "..\..\OptionsWindow.xaml"
#line 43 "..\..\OptionsWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.RadioButton RbCommandsTeam;

#line default
#line hidden


#line 39 "..\..\OptionsWindow.xaml"
#line 44 "..\..\OptionsWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.RadioButton RbCommandsBoth;

#line default
#line hidden


#line 40 "..\..\OptionsWindow.xaml"
#line 45 "..\..\OptionsWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.RadioButton RbCommandsSelf;

Expand Down Expand Up @@ -173,58 +173,66 @@ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object
this.TbLang = ((System.Windows.Controls.TextBox)(target));
return;
case 3:

#line 16 "..\..\OptionsWindow.xaml"
((System.Windows.Documents.Hyperlink)(target)).RequestNavigate += new System.Windows.Navigation.RequestNavigateEventHandler(this.Hyperlink_RequestNavigate);

#line default
#line hidden
return;
case 4:
this.TbOwnUsername = ((System.Windows.Controls.TextBox)(target));

#line 17 "..\..\OptionsWindow.xaml"
#line 22 "..\..\OptionsWindow.xaml"
this.TbOwnUsername.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TbOwnUsername_TextChanged);

#line default
#line hidden
return;
case 4:
case 5:
this.CbIgnoreOwnMessages = ((System.Windows.Controls.CheckBox)(target));
return;
case 5:
case 6:
this.CbTransFromAll = ((System.Windows.Controls.CheckBox)(target));
return;
case 6:
case 7:
this.CbTransFromTeam = ((System.Windows.Controls.CheckBox)(target));
return;
case 7:
case 8:
this.RbTransToAll = ((System.Windows.Controls.RadioButton)(target));
return;
case 8:
case 9:
this.RbTransToTeam = ((System.Windows.Controls.RadioButton)(target));
return;
case 9:
case 10:
this.TbTelnetPort = ((System.Windows.Controls.TextBox)(target));

#line 35 "..\..\OptionsWindow.xaml"
#line 40 "..\..\OptionsWindow.xaml"
this.TbTelnetPort.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.TbTelnetPort_OnPreviewTextInput);

#line default
#line hidden
return;
case 10:
case 11:
this.RbCommandsTeam = ((System.Windows.Controls.RadioButton)(target));
return;
case 11:
case 12:
this.RbCommandsBoth = ((System.Windows.Controls.RadioButton)(target));
return;
case 12:
case 13:
this.RbCommandsSelf = ((System.Windows.Controls.RadioButton)(target));
return;
case 13:
case 14:

#line 42 "..\..\OptionsWindow.xaml"
#line 47 "..\..\OptionsWindow.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnSetDefault_Click);

#line default
#line hidden
return;
case 14:
case 15:

#line 43 "..\..\OptionsWindow.xaml"
#line 48 "..\..\OptionsWindow.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnSaveOptions_Click);

#line default
Expand Down
Loading

0 comments on commit 1ea8ab0

Please sign in to comment.