예제 #1
0
        private async void btnAddUser_Click(object sender, EventArgs e)
        {
            var frm = new frmUserDetails();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                await loadUsers();
            }
        }
예제 #2
0
        private async void DgvUsers_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int id  = int.Parse(dgvUsers.SelectedRows[0].Cells["Id"].Value.ToString());
            var frm = new frmUserDetails(id);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                await loadUsers();
            }
        }