-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
607 additions
and
689 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,33 @@ | ||
using System; | ||
|
||
namespace RED2 | ||
namespace RED2 | ||
{ | ||
/// <summary> | ||
/// RED workflow steps | ||
/// </summary> | ||
public enum WorkflowSteps | ||
{ | ||
Idle, | ||
StartSearchingForEmptyDirs, | ||
DeleteProcessRunning, | ||
} | ||
|
||
|
||
/// <summary> | ||
/// Result status types of the scan | ||
/// </summary> | ||
public enum DirectorySearchStatusTypes | ||
{ | ||
//Unknown, | ||
Empty, | ||
Error, | ||
NotEmpty | ||
} | ||
|
||
/// <summary> | ||
/// Result types of the deletion process | ||
/// </summary> | ||
public enum DirectoryDeletionStatusTypes | ||
{ | ||
Deleted, | ||
Warning, | ||
Ignored, | ||
Protected | ||
} | ||
|
||
// Warning: Entries are case sensitive | ||
public enum DirectoryIcons | ||
{ | ||
home, | ||
deleted, | ||
protected_icon, | ||
folder_warning | ||
} | ||
|
||
public class DeleteModeItem | ||
{ | ||
public DeleteModes DeleteMode { get; set; } | ||
|
||
public DeleteModeItem(DeleteModes Mode) | ||
{ | ||
this.DeleteMode = Mode; | ||
} | ||
|
||
public static DeleteModes[] GetList() | ||
{ | ||
return new DeleteModes[] { | ||
DeleteModes.RecycleBin, | ||
DeleteModes.RecycleBinWithQuestion, | ||
DeleteModes.Direct, | ||
DeleteModes.Simulate | ||
}; | ||
} | ||
|
||
public override string ToString() | ||
{ | ||
switch (this.DeleteMode) | ||
{ | ||
case DeleteModes.RecycleBin: | ||
return "Delete to recycle bin (Default)"; | ||
|
||
case DeleteModes.RecycleBinWithQuestion: | ||
return "Delete to recycle bin and ask before every deletion (Can be annoying)"; | ||
|
||
case DeleteModes.Direct: | ||
return "Delete directly and don't ask any questions (No turning back)"; | ||
|
||
case DeleteModes.Simulate: | ||
return "Simulate deletion (Don't delete anything)"; | ||
|
||
// Idee Move all files? | ||
|
||
default: | ||
throw new Exception("Unknown delete mode"); | ||
} | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.