aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications/FileSkimmer.cs
diff options
context:
space:
mode:
authorMichael VanOverbeek <[email protected]>2017-05-02 21:35:28 -0400
committerGitHub <[email protected]>2017-05-02 21:35:28 -0400
commit49eff9f7efd67cfb1da3511fe5a93c422bf9a95c (patch)
treefa81fbdfaad10073eab0ae322711d22c933a92eb /ShiftOS.WinForms/Applications/FileSkimmer.cs
parentc59dcc824dc3a7d2ad32b76e62db804a81df71a0 (diff)
parentbbb21a1b32ff2642eb3f9804ef653e57a8be7e41 (diff)
downloadshiftos_thereturn-49eff9f7efd67cfb1da3511fe5a93c422bf9a95c.tar.gz
shiftos_thereturn-49eff9f7efd67cfb1da3511fe5a93c422bf9a95c.tar.bz2
shiftos_thereturn-49eff9f7efd67cfb1da3511fe5a93c422bf9a95c.zip
Merge pull request #118 from AShifter/master
Start working on Advanced File Skimmer
Diffstat (limited to 'ShiftOS.WinForms/Applications/FileSkimmer.cs')
-rw-r--r--ShiftOS.WinForms/Applications/FileSkimmer.cs34
1 files changed, 32 insertions, 2 deletions
diff --git a/ShiftOS.WinForms/Applications/FileSkimmer.cs b/ShiftOS.WinForms/Applications/FileSkimmer.cs
index 3b4b2e7..6309775 100644
--- a/ShiftOS.WinForms/Applications/FileSkimmer.cs
+++ b/ShiftOS.WinForms/Applications/FileSkimmer.cs
@@ -125,6 +125,14 @@ namespace ShiftOS.WinForms.Applications
private string currentdir = "";
+ public void pinDirectory(string path)
+ {
+ int amountsCalled = -1;
+ amountsCalled = amountsCalled + 1;
+ pinnedItems.Nodes.Add(path);
+ pinnedItems.Nodes[amountsCalled].Nodes.Add("test");
+ }
+
public void ChangeDirectory(string path)
{
currentdir = path;
@@ -406,7 +414,29 @@ namespace ShiftOS.WinForms.Applications
}
catch { }
}
- }
-
+ private void pinToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ Infobox.PromptYesNo("Pin folder", "Are you sure you want to pin \"" + lvitems.SelectedItems[0].Text + "\"?", (result) =>
+ {
+ if (result == true)
+ {
+ if (currentdir != "__system")
+ {
+ pinDirectory(currentdir + "/" + lvitems.SelectedItems[0].Text);
+ ResetList();
+ }
+ else
+ {
+ Infobox.Show("Cannot Pin", "You cannot pin a system drive.");
+ }
+
+ }
+ });
+ }
+ catch { }
+ }
+ }
}