示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            addEdit add = new addEdit("add", "", "", "", "NINGUNO");

            add.ShowDialog();
            Actualizar();
        }
示例#2
0
        private void button3_Click(object sender, EventArgs e)
        {
            try
            {
                string id      = listaUsuarios.SelectedItems[0].SubItems[0].Text;
                string nick    = listaUsuarios.SelectedItems[0].SubItems[1].Text;
                string pass    = listaUsuarios.SelectedItems[0].SubItems[2].Text;
                string permiso = listaUsuarios.SelectedItems[0].SubItems[3].Text;

                addEdit edit = new addEdit("edit", id, nick, pass, permiso);
                edit.ShowDialog();
                Actualizar();
            }
            catch
            {
                MessageBox.Show("No se ha seleccionado algun cliente");
            }
        }