aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Frontend/ShiftOS.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-08-05 17:01:15 -0400
committerMichael <[email protected]>2017-08-05 17:01:15 -0400
commitf4d11fcdad5fdfc7c25cf3c6f96516b2330dca1c (patch)
tree2e925af18ff12ee435b05b69d55077d9abc4b7b2 /ShiftOS.Frontend/ShiftOS.cs
parent2352fcc7a1af388def5d7b0c9172f805d707d2c7 (diff)
downloadshiftos_thereturn-f4d11fcdad5fdfc7c25cf3c6f96516b2330dca1c.tar.gz
shiftos_thereturn-f4d11fcdad5fdfc7c25cf3c6f96516b2330dca1c.tar.bz2
shiftos_thereturn-f4d11fcdad5fdfc7c25cf3c6f96516b2330dca1c.zip
file opener and file saver
Diffstat (limited to 'ShiftOS.Frontend/ShiftOS.cs')
-rw-r--r--ShiftOS.Frontend/ShiftOS.cs13
1 files changed, 11 insertions, 2 deletions
diff --git a/ShiftOS.Frontend/ShiftOS.cs b/ShiftOS.Frontend/ShiftOS.cs
index cda7558..65ec7aa 100644
--- a/ShiftOS.Frontend/ShiftOS.cs
+++ b/ShiftOS.Frontend/ShiftOS.cs
@@ -442,12 +442,21 @@ Text cache: {GraphicsContext.StringCaches.Count}", 0, 0, color, new System.Drawi
public void GetPath(string[] filetypes, FileOpenerStyle style, Action<string> callback)
{
- throw new NotImplementedException();
+ var fs = new Apps.FileSkimmer();
+ fs.IsDialog = true;
+ fs.DialogMode = style;
+ fs.FileFilters = filetypes;
+ fs.DialogCallback = callback;
+ AppearanceManager.SetupDialog(fs);
}
public void OpenDirectory(string path)
{
- throw new NotImplementedException();
+ if (!Objects.ShiftFS.Utils.DirectoryExists(path))
+ return;
+ var fs = new Apps.FileSkimmer();
+ fs.Navigate(path);
+ AppearanceManager.SetupWindow(fs);
}
}