Beispiel #1
0
        public void OpenTab(FileSystemElement directory = null, bool @switch = false)
        {
            var win = new FileSystemElement("Windows", "C:", DateTimeOffset.Now, 0);

            var newTab = directory == null ? new FSEBrowserModel(win) : new FSEBrowserModel(directory);

            FileBrowserModels.Add(newTab);

            if (@switch)
            {
                CurrentFileBrowser = newTab;
                OnPropertyChanged("SelectedTab");
            }
        }
Beispiel #2
0
 public void FileBrowser_RequestedTabOpen(object sender, FileSystemElement e)
 {
     FileBrowserModels.Add(new FSEBrowserModel(e));
 }