private void EditItem(Action item) { EditActionForm form = new EditActionForm(item); if (form.ShowDialog() == DialogResult.OK) { FillDataGridView(); } }
private void actionsMenuItem_AddButtonClick(object sender, EventArgs e) { var form = new EditActionForm(); if (form.ShowDialog() == DialogResult.OK) { ShowActionsPanel(); actionsControlPanel.UpdateControl(); } }