示例#1
0
        static void Main(string[] args)
        {
            Accauntant acc    = new Accauntant();
            var        senior = Position.Senior;

            Console.WriteLine(acc.AskForBonus(senior, 50) ? "Take premium" : "Don`t take premium");
            Console.ReadKey();
        }
示例#2
0
 static void Main(string[] args)
 {
     Accauntant accauntant = new Accauntant();
     int hours = 300;
     accauntant.Salary = 10000.0;
     Post post = Post.Engineer;
     accauntant.check = accauntant.AskForBonus(post, hours);
     accauntant.ShowSalary();    
     Console.ReadLine();
 }
示例#3
0
        static void Main(string[] args)
        {
            Accauntant accauntant = new Accauntant();

            if (accauntant.AskForBonus(Jobs.BigBoss, 140))
            {
                Console.WriteLine("TRUE");
            }
            else
            {
                Console.WriteLine("FALSE");
            }

            Console.ReadKey();
        }
示例#4
0
 private static void Info(Worker worker, int hours)
 {
     Console.WriteLine(worker);
     Console.WriteLine("Общее число рабочих часов: " + hours);
     Console.WriteLine("Бонусы: " + Accauntant.AskForBonus(worker, hours));
 }