Exemplo n.º 1
0
 public static ClassComputerOp Instance()
 {
     if (_instance == null)
     {
         _instance = new ClassComputerOp();
     }
     return(_instance);
 }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            Console.WriteLine();
            Console.WriteLine("CPU_ID:" + ClassComputerOp.Instance().CpuID);
            Console.WriteLine("MacAddress:" + ClassComputerOp.Instance().MacAddress);
            Console.WriteLine("DiskID:" + ClassComputerOp.Instance().DiskID);
            Console.WriteLine("IpAddress:" + ClassComputerOp.Instance().IpAddress);
            Console.WriteLine("LoginUserName:"******"ComputerName:" + ClassComputerOp.Instance().ComputerName);
            Console.WriteLine("SystemType:" + ClassComputerOp.Instance().SystemType);
            Console.WriteLine("TotalPhysicalMemory:" + ClassComputerOp.Instance().TotalPhysicalMemory);


            Console.Read();
        }