Example #1
0
        public static void ChooseAction(IMember member)
        {
            Console.Clear();

            StandardMessage.GreetMessageForEmpAndFreelan(member);
            int act = int.Parse(Console.ReadLine());

            Console.Clear();
            switch (act)
            {
            case 1:
                AddingHours.AddHours(member);
                Continue.AskToContinue(member);
                break;

            case 2:
                ReadingReport.ReadReportAndSalary(member);
                Continue.AskToContinue(member);
                break;

            case 3:
                Environment.Exit(0);
                break;

            default:
                ErrorMessage.WrongAction();
                break;
            }
        }
Example #2
0
        public static void ChooseAction(IMember header)
        {
            Console.Clear();

            HeaderMessage.GreetMessageForHeader(header);
            int act = int.Parse(Console.ReadLine());

            Console.Clear();
            switch (act)
            {
            case 1:
                AddingMember.AddMember();
                Continue.AskToContinue(header);
                break;

            case 2:
                ReadingAllReports.ReadAllReport();
                Continue.AskToContinue(header);
                break;

            case 3:
                ReadingMemberReport.ReadMemberReport();
                Continue.AskToContinue(header);
                break;

            case 4:
                AddingHoursForMember.AddHoursForMember();
                Continue.AskToContinue(header);
                break;

            case 5:
                Environment.Exit(0);
                break;

            default:
                ErrorMessage.WrongAction();
                break;
            }
        }