|
5 | 5 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
6 | 6 | xmlns:local="clr-namespace:DotNetStringRepacker"
|
7 | 7 | mc:Ignorable="d"
|
8 |
| - Title="MainWindow" Height="350" Width="525"> |
9 |
| - <Grid> |
10 |
| - |
11 |
| - </Grid> |
| 8 | + Title="DotNet String Repacker" Height="500" Width="700" MinHeight="350" MinWidth="500" Closed="Window_Closed"> |
| 9 | + <TabControl> |
| 10 | + <TabItem x:Name="MainTab" Padding="0" > |
| 11 | + <TabItem.Header> |
| 12 | + <TextBlock Padding="5,0" Margin="0">Main</TextBlock> |
| 13 | + </TabItem.Header> |
| 14 | + <TabItem.Content> |
| 15 | + <DockPanel LastChildFill="True"> |
| 16 | + <StackPanel Orientation="Vertical" DockPanel.Dock="Top"> |
| 17 | + <Label Content="Input file (valid .NET Assembly ".exe" or ".dll" file):" HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Top"/> |
| 18 | + <TextBox Height="23" TextWrapping="NoWrap" Margin="10,0,10,0" x:Name="InputTextBox" Drop="TextBox_Drop" AllowDrop="True" PreviewDragOver="TextBox_PreviewDragOver" /> |
| 19 | + <Label Content="Output file (file with replaced strings will be written here):" HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Top"/> |
| 20 | + <TextBox Height="23" TextWrapping="NoWrap" Margin="10,0,10,0" x:Name="OutputTextBox" Drop="TextBox_Drop" AllowDrop="True" PreviewDragOver="TextBox_PreviewDragOver" /> |
| 21 | + <Label Content="Strings file (".csv" file to/from strings will be exported/loaded):" HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Top"/> |
| 22 | + <TextBox Height="23" TextWrapping="NoWrap" Margin="10,0,10,0" x:Name="StringsFileTextBox" Drop="TextBox_Drop" AllowDrop="True" PreviewDragOver="TextBox_PreviewDragOver" /> |
| 23 | + <DockPanel Margin="10"> |
| 24 | + <StackPanel Orientation="Horizontal" DockPanel.Dock="Right" HorizontalAlignment="Right" > |
| 25 | + <Button Content="Cancel" Margin="0,0,10,0" Padding="5,2" x:Name="CancelButtton" Click="CancelButtton_Click" IsCancel="True" IsEnabled="False"/> |
| 26 | + <Button Content="Extract strings" Margin="0,0,10,0" Padding="5,2" x:Name="ExtractButtton" Click="ExtractButtton_Click"/> |
| 27 | + <Button Content="Repack application" Padding="5,2" x:Name="RepackButtton" Click="RepackButtton_Click" /> |
| 28 | + </StackPanel> |
| 29 | + <!--<Button DockPanel.Dock="Left" Content="About" Margin="0,0,10,0" Padding="5,2" x:Name="AboutButton" Click="CancelButtton_Click" IsCancel="True" IsEnabled="False"/>--> |
| 30 | + <ProgressBar Margin="0,0,10,0" x:Name="ProgressBar"/> |
| 31 | + </DockPanel> |
| 32 | + </StackPanel> |
| 33 | + <TextBox TextWrapping="NoWrap" Margin="10,0,10,10" x:Name="LogTextBox" IsUndoEnabled="False" IsReadOnly="True" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" /> |
| 34 | + |
| 35 | + </DockPanel> |
| 36 | + </TabItem.Content> |
| 37 | + |
| 38 | + </TabItem> |
| 39 | + <TabItem x:Name="AboutTab" Padding="0" > |
| 40 | + <TabItem.Header> |
| 41 | + <TextBlock Padding="5,0" Margin="0">About</TextBlock> |
| 42 | + </TabItem.Header> |
| 43 | + <TabItem.Content> |
| 44 | + <StackPanel Margin="5"> |
| 45 | + <Label Content="DotNet String Repacker" FontWeight="Bold" FontSize="14" /> |
| 46 | + <Label> |
| 47 | + <TextBlock TextWrapping="WrapWithOverflow"> |
| 48 | + This program allows extract and replace strings in .NET application. |
| 49 | + </TextBlock> |
| 50 | + </Label> |
| 51 | + |
| 52 | + <StackPanel Orientation="Horizontal"> |
| 53 | + <Label Content="Version:" FontWeight="Bold" /> |
| 54 | + <Label x:Name="VersionLabel" Content=""/> |
| 55 | + </StackPanel> |
| 56 | + |
| 57 | + <Label x:Name="ProjectWebsiteLabel"> |
| 58 | + <TextBlock TextWrapping="WrapWithOverflow"> |
| 59 | + <TextBlock FontWeight="Bold">Project website: </TextBlock> |
| 60 | + <Hyperlink NavigateUri="https://github.com/VoronFX/DotNet-String-Repacker" >https://github.com/VoronFX/DotNet-String-Repacker</Hyperlink> |
| 61 | + </TextBlock> |
| 62 | + </Label> |
| 63 | + |
| 64 | + <!--<Label x:Name="CopyrightLabel"> |
| 65 | + <TextBlock TextWrapping="WrapWithOverflow"> |
| 66 | + <TextBlock FontWeight="Bold">Copyright: </TextBlock> |
| 67 | + @ 2015 Voron.exe<LineBreak/> All rights reserved. |
| 68 | + </TextBlock> |
| 69 | + </Label>--> |
| 70 | + |
| 71 | + <GroupBox Margin="5"> |
| 72 | + <GroupBox.Header> |
| 73 | + <TextBlock FontWeight="Bold" FontSize="14">Author</TextBlock> |
| 74 | + </GroupBox.Header> |
| 75 | + <StackPanel Orientation="Horizontal"> |
| 76 | + <Image x:Name="AuthorGravatar" Margin="10,5,10,5" Loaded="AuthorGravatar_Loaded" /> |
| 77 | + <StackPanel> |
| 78 | + <Label Content="Igor Voronin" FontWeight="Bold" /> |
| 79 | + |
| 80 | + <StackPanel Orientation="Horizontal"> |
| 81 | + <Label Content="GitHub:" FontWeight="Bold" /> |
| 82 | + <Label> |
| 83 | + <Hyperlink NavigateUri="https://github.com/VoronFX" >VoronFX</Hyperlink> |
| 84 | + </Label> |
| 85 | + </StackPanel> |
| 86 | + <StackPanel Orientation="Horizontal"> |
| 87 | + <Label Content="Email:" FontWeight="Bold" /> |
| 88 | + <Label> |
| 89 | + < Hyperlink NavigateUri= "mailto:[email protected]" > [email protected]</ Hyperlink> |
| 90 | + </Label> |
| 91 | + </StackPanel> |
| 92 | + <StackPanel Orientation="Horizontal"> |
| 93 | + <Label Content="Skype:" FontWeight="Bold" /> |
| 94 | + <Label> |
| 95 | + <Hyperlink NavigateUri="skype:Voron.exe?chat:Voron.exe">Voron.exe</Hyperlink> |
| 96 | + </Label> |
| 97 | + </StackPanel> |
| 98 | + </StackPanel> |
| 99 | + </StackPanel> |
| 100 | + </GroupBox> |
| 101 | + </StackPanel> |
| 102 | + </TabItem.Content> |
| 103 | + </TabItem> |
| 104 | + </TabControl> |
| 105 | + |
12 | 106 | </Window>
|
0 commit comments