Skip to content

Commit

Permalink
* Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDead committed Sep 10, 2016
1 parent ae5fb05 commit 4458b28
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 29 deletions.
1 change: 0 additions & 1 deletion Advanced PassGen/Advanced PassGen.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@
<ItemGroup>
<Resource Include="Resources\Images\advanced.png" />
<Resource Include="Resources\Images\general.png" />
<Resource Include="Resources\Images\generator.png" />
<Resource Include="Resources\Images\list.png" />
</ItemGroup>
<ItemGroup>
Expand Down
11 changes: 2 additions & 9 deletions Advanced PassGen/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace Advanced_PassGen
namespace Advanced_PassGen
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
public partial class App
{
}
}
10 changes: 0 additions & 10 deletions Advanced PassGen/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions Advanced PassGen/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,6 @@
<data name="general" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Images\general.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="generator" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Images\generator.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="list" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Images\list.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
Expand Down
Binary file removed Advanced PassGen/Resources/Images/generator.png
Binary file not shown.
14 changes: 9 additions & 5 deletions Advanced PassGen/Windows/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
mc:Ignorable="d"
AllowsTransparency="True"
Title="Advanced PassGen" WindowStartupLocation="CenterScreen" Icon="/Advanced PassGen;component/key.ico" Width="400" Height="300" TitleTextAlignment="Center">
Title="Advanced PassGen" WindowStartupLocation="CenterScreen" Icon="/Advanced PassGen;component/key.ico" Width="350" Height="250" TitleTextAlignment="Center">
<Grid>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
Expand Down Expand Up @@ -94,9 +94,6 @@
</GroupBox>
</Grid>
</syncfusion:TabItemExt>
<syncfusion:TabItemExt Header="Generator" Image="../Resources/Images/generator.png" ImageHeight="16" ImageWidth="16" >
<Button x:Name="BtnGenerate" Width="100" Height="25" Content="Generate" Click="BtnGenerate_Click"></Button>
</syncfusion:TabItemExt>
<syncfusion:TabItemExt Header="List" Image="../Resources/Images/list.png" ImageHeight="16" ImageWidth="16" >
<Grid>
<Grid.RowDefinitions>
Expand Down Expand Up @@ -140,7 +137,14 @@
</GridView>
</ListView.View>
</ListView>
<Button x:Name="BtnExport" Height="25" Grid.Row="1" Content=" Export" Margin="0" Click="BtnExport_Click" ></Button>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<Button x:Name="BtnGenerate" Content="Generate" Click="BtnGenerate_Click"></Button>
<Button x:Name="BtnExport" Grid.Column="1" Content=" Export" Click="BtnExport_Click" ></Button>
</Grid>
</Grid>
</syncfusion:TabItemExt>
</syncfusion:TabControlExt>
Expand Down
2 changes: 1 addition & 1 deletion Advanced PassGen/Windows/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ private async void BtnGenerate_Click(object sender, RoutedEventArgs e)
{
LsvPasswordList.Items.Add(s);
}
TceTabs.SelectedIndex = 3;
}

private void BtnExport_Click(object sender, RoutedEventArgs e)
Expand All @@ -180,6 +179,7 @@ private void BtnExport_Click(object sender, RoutedEventArgs e)
if (res != true) return;
try
{
// ReSharper disable once SwitchStatementMissingSomeCases
switch (sfd.FilterIndex)
{
case 1:
Expand Down

0 comments on commit 4458b28

Please sign in to comment.