Ejemplo n.º 1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     AddEditUser aeu = new AddEditUser(cbSDiv.SelectedItem.ToString());
     aeu.ShowDialog();
 }
Ejemplo n.º 2
0
        private void EditUser(DataGridView dgv)
        {
            string uid = dgv.Rows[dgv.SelectedCells[0].RowIndex].Cells["user_id"].Value.ToString();

            string urid = "0";

            if(dgv.Name == "_dgv2")
                urid = dgv.Rows[dgv.SelectedCells[0].RowIndex].Cells["ur_id"].Value.ToString();

            globalData.update = false;

            AddEditUser aeu = new AddEditUser(uid, urid, cbSDiv.SelectedItem.ToString());
            aeu.ShowDialog();
        }