aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications/FileSkimmer.cs
diff options
context:
space:
mode:
authorAShifter <[email protected]>2017-05-02 19:26:59 -0600
committerAShifter <[email protected]>2017-05-02 19:26:59 -0600
commitbbb21a1b32ff2642eb3f9804ef653e57a8be7e41 (patch)
treeac7ccdb9a1419e3428f3a7178afd388d3d6fa7cf /ShiftOS.WinForms/Applications/FileSkimmer.cs
parentd30eb35c9755cf430efa124a9a2576ab6b74c8da (diff)
downloadshiftos_thereturn-bbb21a1b32ff2642eb3f9804ef653e57a8be7e41.tar.gz
shiftos_thereturn-bbb21a1b32ff2642eb3f9804ef653e57a8be7e41.tar.bz2
shiftos_thereturn-bbb21a1b32ff2642eb3f9804ef653e57a8be7e41.zip
start advanced file skimmer
it's cool!
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 { }
+ }
+ }
}