예제 #1
0
        static void Main(string[] args)
        {
            Workers workers = new Workers();

            Worker worker1 = new Worker("Иванов И.И.", ".Net Devoloper", 1.5);
            Worker worker2 = new Worker("Смирнов С.С.", "Back End", 2.0);
            Worker worker3 = new Worker("Николаенко Н.Н.", "Architector", 3.5);

            workers.InputUserData(worker1);
            workers.InputUserData(worker2);
            workers.InputUserData(worker3);

            workers.Print();
            Console.WriteLine(new string('=', 40));

            workers.Print(isSorted: true);
            Console.WriteLine(new string('=', 40));

            workers.Print(2.0);

            Console.ReadKey();
        }