public override void ShowSettings() { if (Path == null) { return; } base.ShowSettings(); Console.WriteLine("Firmware\t{0}", Firmware.ToUpper()); Console.WriteLine("Sound Card\t{0}\t{1}", SoundCard, VMware.ValueToDescripton(SoundCard)); Console.WriteLine(); List <string> NIC = NICs; if (NIC.Count > 0) { Console.Write("NICs"); } for (int i = 0; i < NIC.Count; i++) { Console.WriteLine("\t[{0}]\t{1}\t{2}", i, NIC[i], VMware.ValueToDescripton(NIC[i])); } }
private void Refresh() { VMware_OC.Clear(); VBox_OC.Clear(); VirtualPC_OC.Clear(); VMware.SearchVM(ref VMware_OC); VirtualBox.SearchVM(ref VBox_OC); VirtualPC.SearchVM(ref VirtualPC_OC); }
//搜索虚拟机 public static List <VirtualMachine> SearchVM() { var VMList = new List <VirtualMachine>(); VMware.SearchVM(ref VMList); VirtualBox.SearchVM(ref VMList); VirtualPC.SearchVM(ref VMList); return(VMList); }
public object Convert(object value, Type type, object para, CultureInfo culture) { if (value == null) { return(""); } else { return(VMware.ValueToDescripton(value.ToString())); } }