diff options
| author | Michael <[email protected]> | 2017-02-19 20:19:00 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-02-19 20:19:00 -0500 |
| commit | 994f6b991a56382f530e3d43ad1f3a56c195559d (patch) | |
| tree | 014d70e562cb584e4e592eb0bc9c680cacda007b /ShiftOS.WinForms/Applications/FileSkimmer.cs | |
| parent | 55c1fbeaa215fd2b2e65c51d0cd2aae53892f135 (diff) | |
| download | shiftos_thereturn-994f6b991a56382f530e3d43ad1f3a56c195559d.tar.gz shiftos_thereturn-994f6b991a56382f530e3d43ad1f3a56c195559d.tar.bz2 shiftos_thereturn-994f6b991a56382f530e3d43ad1f3a56c195559d.zip | |
SFT making utilities
Diffstat (limited to 'ShiftOS.WinForms/Applications/FileSkimmer.cs')
| -rw-r--r-- | ShiftOS.WinForms/Applications/FileSkimmer.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/Applications/FileSkimmer.cs b/ShiftOS.WinForms/Applications/FileSkimmer.cs index ec8fd00..2881dc0 100644 --- a/ShiftOS.WinForms/Applications/FileSkimmer.cs +++ b/ShiftOS.WinForms/Applications/FileSkimmer.cs @@ -258,6 +258,29 @@ namespace ShiftOS.WinForms.Applications public void OnUpgrade() { } + + private void newFolderToolStripMenuItem_Click(object sender, EventArgs e) + { + Infobox.PromptText("New Folder", "Please type a name for your folder.", (path) => + { + if (!string.IsNullOrWhiteSpace(path)) + { + if(!Utils.DirectoryExists(this.currentdir + "/" + path)) + { + Utils.CreateDirectory(currentdir + "/" + path); + this.ResetList(); + } + else + { + Infobox.Show("New folder", "A folder with that name already exists."); + } + } + else + { + Infobox.Show("New folder", "You can't create a folder with no name!"); + } + }); + } } |
