private void dataGridView_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { InsertUpdateForm iuf = new InsertUpdateForm(id, user, pass); if (iuf.ShowDialog() == DialogResult.OK) { LoadData(); } }
private void insertBtn_Click(object sender, EventArgs e) { id = -1; InsertUpdateForm iuf = new InsertUpdateForm(id, user, pass); if (iuf.ShowDialog() == DialogResult.OK) { LoadData(); } }