protected override void HandleSelection() { var selectedDrive = Input.ListBox.SelectedItem as DriveItem; if (selectedDrive != null && selectedDrive.IsReady) { if (!(ListerManager.Instance.ListerViewManager.CurrentListerView.Lister is FileLister)) { var lister = new FileLister(); var view = ListerManager.Instance.ListerViewManager.CurrentListerView; view.Lister = lister; view.DataContext = lister; } ListerManager.Instance.CommandManager.SetContainer(selectedDrive.RootDirectory); Hide(); } }
public void OpenLister(string container) { var lister = new FileLister(); OpenLister(container, lister); }