private void btnAdd_Click(object sender, EventArgs e) { var form = new SMTEdit(-1); form.ShowDialog(); dglMain.DataSource = MainTable.Copy(); }
private void dglMain_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { if (dglMain.CurrentCell != null) { var form = new SMTEdit(dglMain.CurrentCell.RowIndex); form.ShowDialog(); dglMain.DataSource = MainTable.Copy(); } }
private void btnEdit_Click(object sender, EventArgs e) { if (dglMain.CurrentCell != null) { var form = new SMTEdit(dglMain.CurrentCell.RowIndex); form.ShowDialog(); dglMain.DataSource = MainTable.Copy(); } }