Beispiel #1
0
 private void SetBase(MasterTreeNode node)
 {
     if (node.Type != NodeType.VirtualMachines || node.VmType?.Value != VirtualMachineType.NONE)
     {
         return;
     }
     try
     {
         HyperV.CheckpointVm(node.Host, node.Name, "Base Checkpoint DNR");
     }
     catch (Exception e)
     {
         MessageBox.Show(e.Message, "Exception", MessageBoxButtons.OK);
     }
     databaseManager.SetVmType(DbVirtualMachine.FromTreeNode(node), VirtualMachineType.BASE);
     RefreshUI();
 }