Exemplo n.º 1
0
        private void btnEjecutivo_Click(object sender, EventArgs e)
        {
            frnVentanaPrincipal frnVentanaPrincipal = new frnVentanaPrincipal('E', null, manejaCli, manejaCuentas, manejaCatalogo, manejaMovi);

            txtNombre.Clear();
            frnVentanaPrincipal.ShowDialog();
        }
Exemplo n.º 2
0
        private void btnAdministrador_Click(object sender, EventArgs e)
        {
            frnVentanaPrincipal frnVentanaPrincipal = new frnVentanaPrincipal('A', "Administrador", manejaCli, manejaCuentas, manejaCatalogo, manejaMovi);

            txtNombre.Clear();

            frnVentanaPrincipal.ShowDialog();
            CargarClientes();
        }
Exemplo n.º 3
0
        private void btnUsuario_Click(object sender, EventArgs e)
        {
            string nombre = txtNombre.Text;

            if (!Rutinas.ValidaBlancos(nombre))
            {
                if (manejaCli.KeyCliente(nombre) != -1)
                {
                    frnVentanaPrincipal frnVentanaPrincipal = new frnVentanaPrincipal('U', nombre, manejaCli, manejaCuentas, manejaCatalogo, manejaMovi);
                    txtNombre.Clear();
                    frnVentanaPrincipal.ShowDialog();
                }
                else
                {
                    MessageBox.Show("No existe registro de ningún cliente con este nombre. Favor de ingresar algún otro.",
                                    "Nombre de cliente no encontrado.", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                }
            }
            else
            {
                MessageBox.Show("Nombre del cliente no capturado.",
                                "Aviso.", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }