Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 2
0
 public void OpenLister(string container)
 {
     var lister = new FileLister();
     OpenLister(container, lister);
 }