private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) { bindingSource1.AddNew(); var singleForm = new EmpSingleForm(this.bindingSource1, 1); singleForm.Show(); }
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { // Open sinle form var singleForm = new EmpSingleForm(this.bindingSource1, 2); singleForm.Show(); }