Esempio n. 1
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();
        }
        private void manageUserToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AddEditUser addEditUser = new AddEditUser();

            addEditUser.ShowDialog();
        }
Esempio n. 3
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            AddEditUser aeu = new AddEditUser(cbSDiv.SelectedItem.ToString());

            aeu.ShowDialog();
        }
        private void bt_ManageUser_Click(object sender, EventArgs e)
        {
            AddEditUser addEditUser = new AddEditUser();

            addEditUser.ShowDialog();
        }