Skip to content

Commit

Permalink
#12
Browse files Browse the repository at this point in the history
  • Loading branch information
MrReSc committed Jun 3, 2019
1 parent 2977965 commit 0b4cb9c
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 14 deletions.
2 changes: 1 addition & 1 deletion IEC Mate/IEC Mate.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<ProductName>IEC-Mate</ProductName>
<PublisherName>Remo Scheidegger</PublisherName>
<ApplicationRevision>23</ApplicationRevision>
<ApplicationVersion>0.0.850.19154</ApplicationVersion>
<ApplicationVersion>0.0.852.19154</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled>
Expand Down
16 changes: 5 additions & 11 deletions IEC Mate/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1095,17 +1095,6 @@ public void AddFileNamesToList(string sourceDir, List<string> allFiles, bool bin
{
allFiles.Add(fileName);
}

////Recursion
//string[] subdirectoryEntries = Directory.GetDirectories(sourceDir);
//foreach (string item in subdirectoryEntries)
//{
// // Avoid "reparse points"
// if ((File.GetAttributes(item) & FileAttributes.ReparsePoint) != FileAttributes.ReparsePoint)
// {
// AddFileNamesToList(item, allFiles, bin);
// }
//}
}

private async void Listbox_ergebnis_MouseDoubleClick(object sender, MouseButtonEventArgs e)
Expand Down Expand Up @@ -1855,6 +1844,7 @@ private async void Bt_lock_loschen_Click(object sender, RoutedEventArgs e)
Directory.GetAccessControl(suchpfad);

AddFileNamesToList(suchpfad, allFiles, (bool)ts_binar_suche.IsChecked);
int counter = 0;

foreach (var file in allFiles)
{
Expand All @@ -1864,9 +1854,13 @@ private async void Bt_lock_loschen_Click(object sender, RoutedEventArgs e)
if (actual.Equals(".puLock"))
{
File.Delete(file);
counter++;
}
}

var message = counter.ToString() + " " + Properties.Resources.puLockDateien;
await this.ShowMessageAsync(Properties.Resources.dialogTitelHelferLock, message, MessageDialogStyle.Affirmative);

}
catch (Exception)
{
Expand Down
4 changes: 2 additions & 2 deletions IEC Mate/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.0.850.19154")]
[assembly: AssemblyFileVersion("0.0.850.19154")]
[assembly: AssemblyVersion("0.0.852.19154")]
[assembly: AssemblyFileVersion("0.0.852.19154")]
9 changes: 9 additions & 0 deletions IEC Mate/Properties/Resources.Designer.cs

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

3 changes: 3 additions & 0 deletions IEC Mate/Properties/Resources.de-DE.resx
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,9 @@
<data name="mi_pfad_offnen" xml:space="preserve">
<value>Ordner öffnen</value>
</data>
<data name="puLockDateien" xml:space="preserve">
<value>puLock Datein wurden gelöscht.</value>
</data>
<data name="suche_dateien" xml:space="preserve">
<value>Durchsuchte Dateien: </value>
</data>
Expand Down
3 changes: 3 additions & 0 deletions IEC Mate/Properties/Resources.en-GB.resx
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,9 @@
<data name="mi_pfad_offnen" xml:space="preserve">
<value>Open folder</value>
</data>
<data name="puLockDateien" xml:space="preserve">
<value>puLock files were deleted.</value>
</data>
<data name="suche_dateien" xml:space="preserve">
<value>Scanned files: </value>
</data>
Expand Down
3 changes: 3 additions & 0 deletions IEC Mate/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,9 @@
<data name="mi_pfad_offnen" xml:space="preserve">
<value>Ordner öffnen</value>
</data>
<data name="puLockDateien" xml:space="preserve">
<value>puLock Datein wurden gelöscht.</value>
</data>
<data name="suche_dateien" xml:space="preserve">
<value>Durchsuchte Dateien: </value>
</data>
Expand Down

0 comments on commit 0b4cb9c

Please sign in to comment.