示例#1
0
文件: Form1.cs 项目: bitkunka/TT4Gtor
        public Form1()
        {
            InitializeComponent();
            //Leer("Localidad");

            List <Entidad> entidades = DatosPrueba.Leer();
        }
示例#2
0
        static void Main(string[] args)
        {
            DatosPrueba datos  = new DatosPrueba();
            string      opcion = "";

            while (true)
            {
                Console.Clear();
                Console.WriteLine("Sistemas de Ordenes");
                Console.WriteLine("===================");
                Console.WriteLine("");
                Console.WriteLine("1->Lista de Producto");
                Console.WriteLine("2->Crear Orden");
                Console.WriteLine("3->Lista de Clientes");
                Console.WriteLine("4->Lista de Vendedores");
                Console.WriteLine("5->Lista de Ordenes");
                Console.WriteLine("0->Salir");
                Console.WriteLine("Seleccione una opcion: ");
                opcion = Console.ReadLine();

                switch (opcion)
                {
                case "1":
                    Console.Clear();
                    datos.ListarProductos();
                    Console.ReadLine();
                    break;

                case "2":
                    Console.Clear();
                    datos.crearOrdenes();
                    break;

                case "3":
                    Console.Clear();
                    datos.ListarCliente();
                    break;

                case "4":
                    Console.Clear();
                    datos.ListarVendedores();
                    break;

                case "5":
                    Console.Clear();
                    datos.ListarOrdenes();
                    break;

                default:
                    break;
                }
                if (opcion == "0")
                {
                    break;
                }
            }
        }
        private void FormMain_Load(object sender, EventArgs e)
        {
            DatosPrueba.CargarDatosPrueba();
            this.menuStrip1.Visible = false;

            showTimer = new System.Windows.Forms.Timer();
            hideTimer = new System.Windows.Forms.Timer();

            showTimer.Tick    += new EventHandler(showTimer_Tick);
            showTimer.Interval = 100;
            showTimer.Start();

            hideTimer.Tick    += new EventHandler(hideTimer_Tick);
            hideTimer.Interval = 125;
            hideTimer.Start();
        }
示例#4
0
        static void Main(string[] args)
        {
            DatosPrueba datos  = new DatosPrueba();
            string      opcion = "";

            while (true)
            {
                Console.Clear();
                Console.WriteLine("SISTEMA INGRESO DE NOTAS, INFORMATICA ADMINISTRATIVA");
                Console.WriteLine("====================================================");
                Console.WriteLine("");
                Console.WriteLine("1 - Lista de Materias");
                Console.WriteLine("2 - Lista de Estudiantes por materia");
                Console.WriteLine("3 - Ingreso de Notas");
                Console.WriteLine("0 - Salir");
                Console.WriteLine("");
                Console.Write("Ingrese numero de opción: ");
                opcion = Console.ReadLine();

                switch (opcion)
                {
                case "1":
                    datos.ListarMaterias();
                    break;

                case "2":
                    string opcion1 = "";
                    datos.ListarEstudiantes();
                    Console.Write("Ingrese codigo de materia: ");
                    opcion1 = Console.ReadLine();
                    switch (opcion1)
                    {
                    case "1":
                        datos.ListarEstudiantesMat1();
                        break;

                    case "2":
                        datos.ListarEstudiantesMat2();
                        break;

                    case "3":
                        datos.ListarEstudiantesMat3();
                        break;

                    case "4":
                        datos.ListarEstudiantesMat4();
                        break;

                    default:
                        break;
                    }
                    break;

                case "3":
                    string opcion2 = "";
                    datos.ListarMaterias();
                    Console.Write("Ingre codigo de materia:");
                    opcion2 = Console.ReadLine();
                    switch (opcion2)
                    {
                    case "1":
                        datos.ingresaNotasEstMat1();
                        break;

                    case "2":
                        datos.ingresaNotasEstMat2();
                        break;

                    case "3":
                        datos.ingresaNotasEstMat3();
                        break;

                    case "4":
                        datos.ingresaNotasEstMat4();
                        break;

                    default:
                        break;
                    }
                    break;
                }
                if (opcion == "0")
                {
                    break;
                }
            }
        }
 private void FormLogin_Load(object sender, EventArgs e)
 {
     DatosPrueba.CargarUsuarios();
 }