Beispiel #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmUserInfo f = new frmUserInfo(0);

            if (f.ShowDialog() == DialogResult.OK)
            {
                LoadUsers();
            }
        }
Beispiel #2
0
        private void dgvUser_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int         id = int.Parse(dgvUser.SelectedRows[0].Cells["Id"].Value.ToString());
            frmUserInfo f  = new frmUserInfo(id);

            if (f.ShowDialog() == DialogResult.OK)
            {
                LoadUsers();
            }
        }