Ejemplo n.º 1
0
        private void AddVdi()
        {
            var cmd = new AddVirtualDiskCommand(Program.MainWindow, vm);

            if (cmd.CanExecute())
            {
                cmd.Execute();
            }
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 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();
        }