Änderung
- Variablen 'static' gesetzt
This commit is contained in:
parent
48970fa89b
commit
78ce0652b3
Binary file not shown.
@ -121,11 +121,11 @@ namespace Eugen.ESystem
|
||||
//public static List<string> UndeletableFiles = new List<string>(); //Liste der unlöschbaren Dateien
|
||||
//public static List<string> UndeletableDirectories = new List<string>(); //Liste der unlöschbaren Verzeichnisse
|
||||
|
||||
private long FileCounter { set; get; } //Anzahl der abgearbeiteten Dateien
|
||||
private long DirectoryCounter { set; get; } //Anzahl der abgearbeiteten Verzeichnisse
|
||||
private static long FileCounter { set; get; } //Anzahl der abgearbeiteten Dateien
|
||||
private static long DirectoryCounter { set; get; } //Anzahl der abgearbeiteten Verzeichnisse
|
||||
|
||||
private long NumberOfFiles { set; get; } //Anzahl der Dateien
|
||||
private long NumberOfDirectories { set; get; } //Anzahl der Verzeichnisse
|
||||
private static long NumberOfFiles { set; get; } //Anzahl der Dateien
|
||||
private static long NumberOfDirectories { set; get; } //Anzahl der Verzeichnisse
|
||||
public long PercentDone { set; get; } //Prozent abgeschlossen
|
||||
private static bool Dir { set; get; } //true = Verzeichnisse und Dateien; false = Nur Dateien
|
||||
|
||||
@ -559,6 +559,40 @@ namespace Eugen.ESystem
|
||||
UndeletableDirectories.Clear();
|
||||
}
|
||||
|
||||
#region Reset Counters
|
||||
/// <summary>
|
||||
/// Resets the file counter to 0.
|
||||
/// </summary>
|
||||
public static void ResetFileCounter()
|
||||
{
|
||||
FileCounter = 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Resets the directory counter to 0.
|
||||
/// </summary>
|
||||
public static void ResetDirectoryCounter()
|
||||
{
|
||||
DirectoryCounter = 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Resets the number of files to 0.
|
||||
/// </summary>
|
||||
public static void ResetNumberOfFiles()
|
||||
{
|
||||
NumberOfFiles = 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Resets the number of directories to 0.
|
||||
/// </summary>
|
||||
public static void ResetNumberOfDirectories()
|
||||
{
|
||||
NumberOfDirectories = 0;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Event Handler
|
||||
// Der Delegat muß die gleiche Signatur aufweisen wie die Eventhandler-Methode.
|
||||
public delegate void EventDelegate(long result);
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user