Exemple #1
0
        private void AddVdi()
        {
            var cmd = new AddVirtualDiskCommand(Program.MainWindow, vm);

            if (cmd.CanExecute())
            {
                cmd.Execute();
            }
        }
Exemple #2
0
        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();
        }
Exemple #3
0
        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();
        }