private void AddVdi() { var cmd = new AddVirtualDiskCommand(Program.MainWindow, vm); if (cmd.CanExecute()) { cmd.Execute(); } }
private void AddVdi() { var cmd = new AddVirtualDiskCommand(Program.MainWindow, vm); if (cmd.CanExecute()) { cmd.Execute(); } // don't wait for the property change to trigger it, as this can take a while UpdateButtons(); }
private void AddButton_Click(object sender, EventArgs e) { var cmd = new AddVirtualDiskCommand(Program.MainWindow.CommandInterface, vm); if (cmd.CanExecute()) { cmd.Execute(); } // don't wait for the property change to trigger it, as this can take a while UpdateButtons(); }