Example #1
0
        public static void MyMenu(Project project)
        {
            Console.ForegroundColor = ConsoleColor.Green;
            Console.SetCursorPosition(60, 10); Console.Write($"Menu");
            Console.SetCursorPosition(55, 11); Console.Write("1.Write report");
            Console.SetCursorPosition(55, 12); Console.Write("2.Build Basement");
            Console.SetCursorPosition(55, 13); Console.Write("3.Build Wall");
            Console.SetCursorPosition(55, 14); Console.Write("4.Build Roof");
            Console.SetCursorPosition(55, 15); Console.Write("5.Build Window");
            Console.SetCursorPosition(55, 16); Console.Write("6.Build Door");
            Console.SetCursorPosition(55, 17); Console.Write("7.Hire an employee");
            Console.SetCursorPosition(55, 18); Console.Write("8.Dismiss the employee");
            Console.SetCursorPosition(55, 19); Console.Write("Esc.Close program");
            Console.SetCursorPosition(55, 21); Console.Write("To Continue press any key");
            Team team = new Team(new House(project));

            while (true)
            {
                Console.SetCursorPosition(55, 22);
                switch (Console.ReadKey().Key)
                {
                case ConsoleKey.Backspace:
                    break;

                case ConsoleKey.Tab:
                    break;

                case ConsoleKey.Clear:
                    break;

                case ConsoleKey.Enter:
                    break;

                case ConsoleKey.Pause:
                    break;

                case ConsoleKey.Escape:
                    return;

                case ConsoleKey.Spacebar:
                    break;

                case ConsoleKey.PageUp:
                    break;

                case ConsoleKey.PageDown:
                    break;

                case ConsoleKey.End:
                    break;

                case ConsoleKey.Home:
                    break;

                case ConsoleKey.LeftArrow:
                    break;

                case ConsoleKey.UpArrow:
                    break;

                case ConsoleKey.RightArrow:
                    break;

                case ConsoleKey.DownArrow:
                    break;

                case ConsoleKey.Select:
                    break;

                case ConsoleKey.Print:
                    break;

                case ConsoleKey.Execute:
                    break;

                case ConsoleKey.PrintScreen:
                    break;

                case ConsoleKey.Insert:
                    break;

                case ConsoleKey.Delete:
                    break;

                case ConsoleKey.Help:
                    break;

                case ConsoleKey.D0:
                    break;

                case ConsoleKey.D1:
                    team.TeamLeader.DoWork();
                    break;

                case ConsoleKey.D2:
                    team.BuildBasement();
                    break;

                case ConsoleKey.D3:
                    team.BuildWalls();
                    break;

                case ConsoleKey.D4:
                    team.BuildRoof();
                    break;

                case ConsoleKey.D5:
                    team.BuildWindows();
                    break;

                case ConsoleKey.D6:
                    team.BuildDoor();
                    break;

                case ConsoleKey.D7:
                    team.HireWorkers();
                    break;

                case ConsoleKey.D8:
                    team.LayOffWorkers();
                    break;

                case ConsoleKey.D9:
                    break;

                case ConsoleKey.A:
                    break;

                case ConsoleKey.B:
                    break;

                case ConsoleKey.C:
                    break;

                case ConsoleKey.D:
                    break;

                case ConsoleKey.E:
                    break;

                case ConsoleKey.F:
                    break;

                case ConsoleKey.G:
                    break;

                case ConsoleKey.H:
                    break;

                case ConsoleKey.I:
                    break;

                case ConsoleKey.J:
                    break;

                case ConsoleKey.K:
                    break;

                case ConsoleKey.L:
                    break;

                case ConsoleKey.M:
                    break;

                case ConsoleKey.N:
                    break;

                case ConsoleKey.O:
                    break;

                case ConsoleKey.P:
                    break;

                case ConsoleKey.Q:
                    break;

                case ConsoleKey.R:
                    break;

                case ConsoleKey.S:
                    break;

                case ConsoleKey.T:
                    break;

                case ConsoleKey.U:
                    break;

                case ConsoleKey.V:
                    break;

                case ConsoleKey.W:
                    break;

                case ConsoleKey.X:
                    break;

                case ConsoleKey.Y:
                    break;

                case ConsoleKey.Z:
                    break;

                case ConsoleKey.LeftWindows:
                    break;

                case ConsoleKey.RightWindows:
                    break;

                case ConsoleKey.Applications:
                    break;

                case ConsoleKey.Sleep:
                    break;

                case ConsoleKey.NumPad0:
                    break;

                case ConsoleKey.NumPad1:
                    team.TeamLeader.DoWork();
                    break;

                case ConsoleKey.NumPad2:
                    team.BuildBasement();
                    break;

                case ConsoleKey.NumPad3:
                    team.BuildWalls();
                    break;

                case ConsoleKey.NumPad4:
                    team.BuildRoof();
                    break;

                case ConsoleKey.NumPad5:
                    team.BuildWindows();
                    break;

                case ConsoleKey.NumPad6:
                    team.BuildDoor();
                    break;

                case ConsoleKey.NumPad7:
                    team.HireWorkers();
                    break;

                case ConsoleKey.NumPad8:
                    team.LayOffWorkers();
                    break;

                case ConsoleKey.NumPad9:
                    break;

                case ConsoleKey.Multiply:
                    break;

                case ConsoleKey.Add:
                    break;

                case ConsoleKey.Separator:
                    break;

                case ConsoleKey.Subtract:
                    break;

                case ConsoleKey.Decimal:
                    break;

                case ConsoleKey.Divide:
                    break;

                case ConsoleKey.F1:
                    break;

                case ConsoleKey.F2:
                    break;

                case ConsoleKey.F3:
                    break;

                case ConsoleKey.F4:
                    break;

                case ConsoleKey.F5:
                    break;

                case ConsoleKey.F6:
                    break;

                case ConsoleKey.F7:
                    break;

                case ConsoleKey.F8:
                    break;

                case ConsoleKey.F9:
                    break;

                case ConsoleKey.F10:
                    break;

                case ConsoleKey.F11:
                    break;

                case ConsoleKey.F12:
                    break;

                case ConsoleKey.F13:
                    break;

                case ConsoleKey.F14:
                    break;

                case ConsoleKey.F15:
                    break;

                case ConsoleKey.F16:
                    break;

                case ConsoleKey.F17:
                    break;

                case ConsoleKey.F18:
                    break;

                case ConsoleKey.F19:
                    break;

                case ConsoleKey.F20:
                    break;

                case ConsoleKey.F21:
                    break;

                case ConsoleKey.F22:
                    break;

                case ConsoleKey.F23:
                    break;

                case ConsoleKey.F24:
                    break;

                case ConsoleKey.BrowserBack:
                    break;

                case ConsoleKey.BrowserForward:
                    break;

                case ConsoleKey.BrowserRefresh:
                    break;

                case ConsoleKey.BrowserStop:
                    break;

                case ConsoleKey.BrowserSearch:
                    break;

                case ConsoleKey.BrowserFavorites:
                    break;

                case ConsoleKey.BrowserHome:
                    break;

                case ConsoleKey.VolumeMute:
                    break;

                case ConsoleKey.VolumeDown:
                    break;

                case ConsoleKey.VolumeUp:
                    break;

                case ConsoleKey.MediaNext:
                    break;

                case ConsoleKey.MediaPrevious:
                    break;

                case ConsoleKey.MediaStop:
                    break;

                case ConsoleKey.MediaPlay:
                    break;

                case ConsoleKey.LaunchMail:
                    break;

                case ConsoleKey.LaunchMediaSelect:
                    break;

                case ConsoleKey.LaunchApp1:
                    break;

                case ConsoleKey.LaunchApp2:
                    break;

                case ConsoleKey.Oem1:
                    break;

                case ConsoleKey.OemPlus:
                    break;

                case ConsoleKey.OemComma:
                    break;

                case ConsoleKey.OemMinus:
                    break;

                case ConsoleKey.OemPeriod:
                    break;

                case ConsoleKey.Oem2:
                    break;

                case ConsoleKey.Oem3:
                    break;

                case ConsoleKey.Oem4:
                    break;

                case ConsoleKey.Oem5:
                    break;

                case ConsoleKey.Oem6:
                    break;

                case ConsoleKey.Oem7:
                    break;

                case ConsoleKey.Oem8:
                    break;

                case ConsoleKey.Oem102:
                    break;

                case ConsoleKey.Process:
                    break;

                case ConsoleKey.Packet:
                    break;

                case ConsoleKey.Attention:
                    break;

                case ConsoleKey.CrSel:
                    break;

                case ConsoleKey.ExSel:
                    break;

                case ConsoleKey.EraseEndOfFile:
                    break;

                case ConsoleKey.Play:
                    break;

                case ConsoleKey.Zoom:
                    break;

                case ConsoleKey.NoName:
                    break;

                case ConsoleKey.Pa1:
                    break;

                case ConsoleKey.OemClear:
                    break;

                default:
                    break;
                }
            }
        }
Example #2
0
        public static void MyMenu(Project project)
        {
            Console.ForegroundColor = ConsoleColor.Green;
            Console.SetCursorPosition(60, 10); Console.Write($"Menu");
            Console.SetCursorPosition(55, 11); Console.Write("1.Write report");
            Console.SetCursorPosition(55, 12); Console.Write("2.Build Basement");
            Console.SetCursorPosition(55, 13); Console.Write("3.Build Wall");
            Console.SetCursorPosition(55, 14); Console.Write("4.Build Roof");
            Console.SetCursorPosition(55, 15); Console.Write("5.Build Window");
            Console.SetCursorPosition(55, 16); Console.Write("6.Build Door");
            Console.SetCursorPosition(55, 17); Console.Write("7.Hire an employee");
            Console.SetCursorPosition(55, 18); Console.Write("8.Dismiss the employee");
            Console.SetCursorPosition(55, 19); Console.Write("Esc.Close program");
            Console.SetCursorPosition(55, 21); Console.Write("To Continue press any key");
            Team team = new Team(new House(project));

            while (true)
            {
                Console.SetCursorPosition(55, 22);
                switch (Console.ReadKey().Key)
                {
                case ConsoleKey.Escape:
                    Loger.WriteLog("Out of program");
                    return;

                case ConsoleKey.D1:
                    team.TeamLeader.DoWork();
                    break;

                case ConsoleKey.D2:
                    team.BuildBasement();
                    break;

                case ConsoleKey.D3:
                    team.BuildWalls();
                    break;

                case ConsoleKey.D4:
                    team.BuildRoof();
                    break;

                case ConsoleKey.D5:
                    team.BuildWindows();
                    break;

                case ConsoleKey.D6:
                    team.BuildDoor();
                    break;

                case ConsoleKey.D7:
                    team.HireWorkers();
                    break;

                case ConsoleKey.D8:
                    team.LayOffWorkers();
                    break;

                case ConsoleKey.NumPad1:
                    team.TeamLeader.DoWork();
                    break;

                case ConsoleKey.NumPad2:
                    team.BuildBasement();
                    break;

                case ConsoleKey.NumPad3:
                    team.BuildWalls();
                    break;

                case ConsoleKey.NumPad4:
                    team.BuildRoof();
                    break;

                case ConsoleKey.NumPad5:
                    team.BuildWindows();
                    break;

                case ConsoleKey.NumPad6:
                    team.BuildDoor();
                    break;

                case ConsoleKey.NumPad7:
                    team.HireWorkers();
                    break;

                case ConsoleKey.NumPad8:
                    team.LayOffWorkers();
                    break;

                default:
                    break;
                }
            }
        }