From f4d11fcdad5fdfc7c25cf3c6f96516b2330dca1c Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 5 Aug 2017 17:01:15 -0400 Subject: file opener and file saver --- ShiftOS.Frontend/ShiftOS.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'ShiftOS.Frontend/ShiftOS.cs') 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 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); } } -- cgit v1.2.3