Exemple #1
0
    public void Run()
    {
        ConfigureConsole();

        bool exit = false;

        do
        {
            PrintBorders();

            int  option         = 1;
            bool selectedOption = false;
            do
            {
                PrintMenu(option, Spanish);
                GetChosenOption(ref option, ref selectedOption);
            } while (!selectedOption);

            switch (option)
            {
            case 1:
                Calendar calendar = new Calendar(); calendar.Run();
                break;

            case 2:
                Contacts contacts = new Contacts(); contacts.Run();
                break;

            case 3:
                TaskToDo tasks = new TaskToDo(); tasks.Run();
                break;

            case 4:
                Notes notes = new Notes(); notes.Run();
                break;

            case 5:
                ConfigurationConsole config = new ConfigurationConsole();
                config.Run();
                break;

            case 6:
                CreditsScreen credits = new CreditsScreen();
                credits.Run();
                break;

            case 7:
                Spanish = !Spanish;
                break;

            case 0:
                exit = true;
                break;

            default: break;
            }
        } while (!exit);
    }