private void addToolStripMenuItem_Click(object sender, EventArgs e) { SettlementSheetForm form = new SettlementSheetForm(); form.ShowDialog(); refreshDataGrid(); }
private void editToolStripMenuItem_Click(object sender, EventArgs e) { if (dataGridSheets.SelectedRows.Count > 0) { SettlementSheetForm form = new SettlementSheetForm(list[dataGridSheets.SelectedRows[0].Index]); form.ShowDialog(); refreshDataGrid(); } }