diff options
Diffstat (limited to 'ShiftOS.Frontend/ShiftOS.cs')
| -rw-r--r-- | ShiftOS.Frontend/ShiftOS.cs | 13 |
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); } } |
