private void updateButton_Click(object sender, EventArgs e) { if (button == 1) { UpdateForm up = new UpdateForm(1); up.ShowDialog(); } if (button == 2) { UpdateForm up = new UpdateForm(3); up.ShowDialog(); } if (button == 3) { UpdateForm up = new UpdateForm(4); up.ShowDialog(); } }
private void empDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (button == 1) { UpdateForm up = new UpdateForm(1); up.ShowDialog(); } if (button == 0) { } if (button == 2) { UpdateForm up = new UpdateForm(3); up.ShowDialog(); } if (button == 3) { UpdateForm up = new UpdateForm(4); up.ShowDialog(); } }
private void AccDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { UpdateForm up = new UpdateForm(0); up.ShowDialog(); }