예제 #1
0
        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]));
            }
        }
예제 #2
0
 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);
 }
예제 #3
0
파일: base.cs 프로젝트: radtek/VMGuide
        //搜索虚拟机
        public static List <VirtualMachine> SearchVM()
        {
            var VMList = new List <VirtualMachine>();

            VMware.SearchVM(ref VMList);
            VirtualBox.SearchVM(ref VMList);
            VirtualPC.SearchVM(ref VMList);
            return(VMList);
        }
예제 #4
0
 public object Convert(object value, Type type, object para, CultureInfo culture)
 {
     if (value == null)
     {
         return("");
     }
     else
     {
         return(VMware.ValueToDescripton(value.ToString()));
     }
 }