Пример #1
0
        static void Main()
        {
            try
            {
                Console.WriteLine(MyInfo.Office);
                Console.WriteLine(MyInfo.OS);
                Console.WriteLine(MyInfo.Model);
                Console.WriteLine(MyInfo.HostIP);
                Console.WriteLine(MyInfo.HostName);
                Console.WriteLine(MyInfo.UserName);
                Console.WriteLine(MyInfo.CPUCores);

                MyInfo.DoMyThing();
            }
            catch (Exception e)
            {
                //Console.WriteLine(String.Format("Exception {0} Trace {1}", e.Message, e.StackTrace));
            }
            //Console.WriteLine("Press Enter to exit");
            //Console.Read();

            //Application.EnableVisualStyles();
            //Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new Form1());
        }