private Command MoveMigrateCommand(IEnumerable <SelectedItem> selection)
        {
            MoveVirtualDiskCommand command = new MoveVirtualDiskCommand(Program.MainWindow, selection);

            if (command.CanExecute())
            {
                return(command);
            }
            return(new MigrateVirtualDiskCommand(Program.MainWindow, selection));
        }
Ejemplo n.º 2
0
        private Command MoveMigrateCommand(IEnumerable <SelectedItem> selection)
        {
            MoveVirtualDiskCommand moveCmd = new MoveVirtualDiskCommand(Program.MainWindow.CommandInterface, selection);

            if (moveCmd.CanExecute())
            {
                return(moveCmd);
            }

            return(new MigrateVirtualDiskCommand(Program.MainWindow.CommandInterface, selection));
        }