Esempio n. 1
0
        private static void Main(string[] args)
        {
            Console.WriteLine("Прогресс загрузки");
            Registry status1 = new Registry();

            status1.Registry_status();
            Explorer status2 = new Explorer();

            status2.Explorer_status();
            Windows_API status3 = new Windows_API();

            status3.Windows_API_status();
            Kernel status4 = new Kernel();

            status4.Kernel_status();
            DirectX status5 = new DirectX();

            status5.DirectX_status();
            User status6 = new User();

            status6.User_status();
            Service status7 = new Service();

            status7.Service_status();
            Processes status8 = new Processes();

            status8.Processes_status();
            ManagerProcesses status9 = new ManagerProcesses();

            status9.NumberService();
            status9.Number_Processes();

            UserInfo ui = new UserInfo();

            Console.WriteLine("Старое количество программ");
            Console.WriteLine(ui.NumberP);
            ui.NumberP = 26;
            Console.WriteLine("Новое количество программ");
            Console.WriteLine(ui.NumberP);
            Console.WriteLine("Имя пользователя");
            Console.WriteLine(ui.Name);

            // Делегаты Action и Func
            Action <int> myAction = new Action <int>(FreeRAM);

            myAction(123);
            Func <int, double> myFunc = new Func <int, double>(FreeSpaceHDD);

            Console.WriteLine(myFunc(5));
            Console.ReadLine();
        }
Esempio n. 2
0
        private static void Main(string[] args)
        {
            Console.WriteLine("Прогресс загрузки");
            Registry status1 = new Registry();

            status1.Registry_status();
            Explorer status2 = new Explorer();

            status2.Explorer_status();
            Windows_API status3 = new Windows_API();

            status3.Windows_API_status();
            Kernel status4 = new Kernel();

            status4.Kernel_status();
            DirectX status5 = new DirectX();

            status5.DirectX_status();
            User status6 = new User();

            status6.User_status();
            Service status7 = new Service();

            status7.Service_status();
            Processes status8 = new Processes();

            status8.Processes_status();
            ManagerProcesses status9 = new ManagerProcesses();

            status9.NumberService();
            status9.Number_Processes();

            UserInfo ui = new UserInfo();

            Console.WriteLine("Старое количество программ");
            Console.WriteLine(ui.NumberP);
            ui.NumberP = 26;
            Console.WriteLine("Новое количество программ");
            Console.WriteLine(ui.NumberP);
            Console.WriteLine("Имя пользователя");
            Console.WriteLine(ui.Name);
            Console.ReadLine();
        }