示例#1
0
        public static void Menu()
        {
            int opcao = 0;

            while (opcao != 5)
            {
                Console.WriteLine("****************************************************COLEGIO************************************************************");
                Console.WriteLine("*****************************************************MENU**************************************************************");
                Console.WriteLine("1 - CADASTRAR ALUNO");
                Console.WriteLine("2 - LISTAR ALUNOS");
                Console.WriteLine("3 - ATUALIZAR ALUNO");
                Console.WriteLine("4 - EXCLUIR ALUNO");
                Console.WriteLine("5 - SAIR DO SISTEMA");
                Console.Write("OPCAO: ");
                opcao = int.Parse(Console.ReadLine());
                switch (opcao)
                {
                case 1:
                    Colegio.AdicionarAluno();
                    break;

                case 2:
                    Colegio.ListarAluno();
                    break;

                case 3:
                    Colegio.AtualizarAluno();
                    break;

                case 4:
                    Colegio.deletarAluno();
                    break;
                }
            }
        }
示例#2
0
 static void Main(string[] args)
 {
     Colegio.Menu();
 }