This commit is contained in:
parent
492d3c71f2
commit
cc2eee27c2
2 changed files with 12 additions and 9 deletions
|
@ -93,15 +93,8 @@
|
||||||
<StackPanel Orientation="Vertical" Margin="10">
|
<StackPanel Orientation="Vertical" Margin="10">
|
||||||
<TextBlock Foreground="White" Text="Display Name:" HorizontalAlignment="Center" Padding="0,10"/>
|
<TextBlock Foreground="White" Text="Display Name:" HorizontalAlignment="Center" Padding="0,10"/>
|
||||||
<TextBox Foreground="White" Name="NameTextBox_Edit"/>
|
<TextBox Foreground="White" Name="NameTextBox_Edit"/>
|
||||||
<Separator/>
|
<Separator Margin="0,10"/>
|
||||||
<Button Foreground="White" Content="Calculate Checksums" Click="ChecksumButtonOnClick" HorizontalAlignment="Stretch"></Button>
|
<Grid Grid.ColumnDefinitions="*,120,*,120,*">
|
||||||
<Border Background="#35313d" CornerRadius="5" Padding="10" Margin="0,5" IsVisible="False" Name="ChecksumArea">
|
|
||||||
<StackPanel>
|
|
||||||
<TextBlock Foreground="White" FontSize="10" Name="MD5TextBlock"/>
|
|
||||||
<TextBlock Foreground="White" FontSize="10" Name="SHATextBlock"/>
|
|
||||||
</StackPanel>
|
|
||||||
</Border>
|
|
||||||
<Grid Grid.ColumnDefinitions="*,120,*,120,*" Margin="0,20">
|
|
||||||
<Border Grid.Column="1" Background="#35313d" Padding="0,5" CornerRadius="5">
|
<Border Grid.Column="1" Background="#35313d" Padding="0,5" CornerRadius="5">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<Image RenderOptions.BitmapInterpolationMode="HighQuality" Source="Images/vmc.png"/>
|
<Image RenderOptions.BitmapInterpolationMode="HighQuality" Source="Images/vmc.png"/>
|
||||||
|
@ -115,6 +108,7 @@
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Border>
|
</Border>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
<Separator Margin="0,10"/>
|
||||||
<Grid Grid.RowDefinitions="*,*,*" Grid.ColumnDefinitions="*,120,*,120,*">
|
<Grid Grid.RowDefinitions="*,*,*" Grid.ColumnDefinitions="*,120,*,120,*">
|
||||||
<ToggleSwitch Name="toggle_mode1" Content="Mode 1" Grid.Row="0" Grid.Column="1" IsCheckedChanged="Toggle_mode_OnIsCheckedChanged"/>
|
<ToggleSwitch Name="toggle_mode1" Content="Mode 1" Grid.Row="0" Grid.Column="1" IsCheckedChanged="Toggle_mode_OnIsCheckedChanged"/>
|
||||||
<ToggleSwitch Name="toggle_mode2" Content="Mode 2" Grid.Row="1" Grid.Column="1" IsCheckedChanged="Toggle_mode_OnIsCheckedChanged"/>
|
<ToggleSwitch Name="toggle_mode2" Content="Mode 2" Grid.Row="1" Grid.Column="1" IsCheckedChanged="Toggle_mode_OnIsCheckedChanged"/>
|
||||||
|
@ -123,6 +117,14 @@
|
||||||
<ToggleSwitch Name="toggle_mode5" Content="Mode 5" Grid.Row="1" Grid.Column="3" IsCheckedChanged="Toggle_mode_OnIsCheckedChanged"/>
|
<ToggleSwitch Name="toggle_mode5" Content="Mode 5" Grid.Row="1" Grid.Column="3" IsCheckedChanged="Toggle_mode_OnIsCheckedChanged"/>
|
||||||
<ToggleSwitch Name="toggle_mode6" Content="Mode 6" Grid.Row="2" Grid.Column="3" IsCheckedChanged="Toggle_mode_OnIsCheckedChanged"/>
|
<ToggleSwitch Name="toggle_mode6" Content="Mode 6" Grid.Row="2" Grid.Column="3" IsCheckedChanged="Toggle_mode_OnIsCheckedChanged"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
<Separator Margin="0,10"/>
|
||||||
|
<Button Foreground="White" Content="Calculate Checksums" Click="ChecksumButtonOnClick" HorizontalAlignment="Stretch"></Button>
|
||||||
|
<Border Background="#35313d" CornerRadius="5" Padding="10" Margin="0,5" IsVisible="False" Name="ChecksumArea">
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock Foreground="White" FontSize="10" Name="MD5TextBlock"/>
|
||||||
|
<TextBlock Foreground="White" FontSize="10" Name="SHATextBlock"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Border>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
<Grid Grid.Row="1" ColumnDefinitions="*,*">
|
<Grid Grid.Row="1" ColumnDefinitions="*,*">
|
||||||
|
|
|
@ -154,6 +154,7 @@ public partial class MainWindow : Window
|
||||||
List<string> VMCs = new List<string>();
|
List<string> VMCs = new List<string>();
|
||||||
Util.CheckDir(Path.Combine(settings.library_path.GetValue<string>(), "VMC"));
|
Util.CheckDir(Path.Combine(settings.library_path.GetValue<string>(), "VMC"));
|
||||||
string[] files = Directory.GetFiles(Path.Combine(settings.library_path.GetValue<string>(), "VMC"));
|
string[] files = Directory.GetFiles(Path.Combine(settings.library_path.GetValue<string>(), "VMC"));
|
||||||
|
VMCs.Add("");
|
||||||
foreach (var file in files)
|
foreach (var file in files)
|
||||||
{
|
{
|
||||||
string fileName = Path.GetFileNameWithoutExtension(file);
|
string fileName = Path.GetFileNameWithoutExtension(file);
|
||||||
|
|
Loading…
Add table
Reference in a new issue