Skip to content

Commit

Permalink
initial stable version
Browse files Browse the repository at this point in the history
  • Loading branch information
EslaMx7 committed May 26, 2016
1 parent 8bfab47 commit a7e51eb
Show file tree
Hide file tree
Showing 8 changed files with 1,910 additions and 22 deletions.
Binary file added AESxWin/1464273828_security-safety-shield.ico
Binary file not shown.
Binary file added AESxWin/1464273833_security-safety-shield.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion AESxWin/AESxWin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
<PropertyGroup>
<StartupObject>AESxWin.Program</StartupObject>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>1464273828_security-safety-shield.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down Expand Up @@ -83,7 +86,9 @@
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup />
<ItemGroup>
<Content Include="1464273828_security-safety-shield.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
2 changes: 1 addition & 1 deletion AESxWin/Helpers/FilesHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public static bool CheckExtension(this string path, IEnumerable<string> extensio

foreach (var ext in extensions)
{
if (path.EndsWith(ext))
if (path.ToLower().EndsWith(ext.ToLower()))
{
return true;
}
Expand Down
9 changes: 6 additions & 3 deletions AESxWin/MainWindow.Designer.cs

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

25 changes: 12 additions & 13 deletions AESxWin/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
Expand Down Expand Up @@ -168,7 +169,7 @@ private async void btnEncrypt_Click(object sender, EventArgs e)



this.Log(String.Format("Finished : {0} File(s) Encrypted.", count));
this.Log($"Finished : {count} File(s) Encrypted.");


}
Expand All @@ -180,7 +181,7 @@ private async void btnDecrypt_Click(object sender, EventArgs e)

this.Log("Decryption Started.");

if (paths != null && paths.Count > 0)
if (paths.Count > 0)
{
foreach (string path in paths)
{
Expand All @@ -198,8 +199,9 @@ private async void btnDecrypt_Click(object sender, EventArgs e)
}
catch (Exception ex)
{

this.Log(path + " " + ex.Message);
if (File.Exists(path.RemoveExtension()))
File.Delete(path.RemoveExtension());
}


Expand Down Expand Up @@ -227,8 +229,9 @@ private async void btnDecrypt_Click(object sender, EventArgs e)
}
catch (Exception ex)
{

this.Log(file + " " + ex.Message);
if(File.Exists(file.RemoveExtension()))
File.Delete(file.RemoveExtension());
}
}

Expand All @@ -246,16 +249,12 @@ private async void btnDecrypt_Click(object sender, EventArgs e)
}
}

this.Log(String.Format("Finished : {0} File(s) Decrypted.", count));
this.Log($"Finished : {count} File(s) Decrypted.");
}









private void lblInfo_Click(object sender, EventArgs e)
{
Process.Start("http://eslamx.com");
}
}
}
Loading

0 comments on commit a7e51eb

Please sign in to comment.