private bool CanExecuteDeleteCommand(IPaneViewModel activePane)
        {
            var connections = activePane as ConnectionsViewModel;

            if (connections != null)
            {
                var validItem = connections.SelectedItem as FtpConnectionItemViewModel;
                return(validItem != null && !connections.IsBusy);
            }
            var sourcePane = activePane as IFileListPaneViewModel;

            return(sourcePane != null &&
                   sourcePane.HasValidSelection &&
                   !sourcePane.IsBusy &&
                   !sourcePane.IsReadOnly &&
                   !sourcePane.IsInEditMode &&
                   !sourcePane.IsInPathEditMode);
        }
Beispiel #2
0
 public ActivePaneChangedEventArgs(IPaneViewModel activePane)
 {
     ActivePane = activePane;
 }
 public OpenNestedPaneEventArgs(IPaneViewModel opener, IPaneViewModel openee)
 {
     Opener = opener;
     Openee = openee;
 }
Beispiel #4
0
 public CloseNestedPaneEventArgs(IPaneViewModel pane, object payload)
 {
     Pane    = pane;
     Payload = payload;
 }