Exemple #1
0
        public static void Main()
        {
            Console.Title = "reSchedule";
            while (true)
            {
                Console.Clear();
                Shows.entry(Entries.entries3);
                Console.Write("Pilihan Anda: ");
                string opt = Console.ReadLine();
                switch (opt)
                {
                case "1":
                    Func.Pick("User");
                    break;

                case "2":
                    Func.Add("User");
                    break;

                case "3":
                    Func.Delete("User");
                    break;

                case "0":
                    Shows.delay("Bye bye " + User.getName() + " ~");
                    Environment.Exit(0);
                    break;

                default:
                    Shows.delay("Pilihan Salah!");
                    break;
                }
            }
        }
Exemple #2
0
        public override void Fungsi()
        {
            while (true)
            {
                Console.Write("\nPilihan anda: ");
                string op = Console.ReadLine();
                switch (op)
                {
                case "1":
                    Func.Add("Tugas");
                    new UserOpt().Fungsi();
                    break;

                case "2":
                    Func.Delete("Tugas");
                    new UserOpt().Fungsi();
                    break;

                case "3":
                    string opt = "1";
                    while (opt != "0")
                    {
                        Func.Show("Tugas");
                        Console.Write("Ketik 0 untuk kembali! ");
                        opt = Console.ReadLine();
                    }
                    new UserOpt().Fungsi();
                    break;

                case "0":
                    new UserOpt().Menu();
                    break;

                default:
                    Shows.delay("Pilihan Salah! ");
                    new UserOpt().Fungsi();
                    break;
                }
                Shows.entry(Entries.entries2);
            }
        }
Exemple #3
0
        public override void Menu()
        {
            while (true)
            {
                Console.Write("\nPilihan anda: ");
                string op = Console.ReadLine();
                switch (op)
                {
                case "1":
                    new UserOpt().Fungsi();
                    break;

                case "0":
                    Program.Main();
                    break;

                default:
                    Shows.delay("Pilihan Salah! ");
                    Menu();
                    break;
                }
                Shows.entry(Entries.entries1);
            }
        }