Пример #1
0
        private void agregarToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            // Accion 1 = agregar nuevo // id User
            AddUsers agregaUsuario = new AddUsers(1);

            agregaUsuario.ShowDialog();
        }
Пример #2
0
        private void usuariosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            inputBox dialogo = new inputBox(2);

            dialogo.ShowDialog();
            USUARIO user = dialogo.getUsuario();

            if (user != null)
            {
                AddUsers agregaUsuario = new AddUsers(2, user);
                agregaUsuario.ShowDialog();
            }
        }