private void addNewFunctionToolStripMenuItem_Click(object sender, EventArgs e) { FormAddFunction addFunction = new FormAddFunction(); addFunction.EventNotifyAddFunction += GetNewFunction; addFunction.Show(); }
private void dataGridViewFunctions_RowHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { DataGridView data = sender as DataGridView; DataGridViewRow row = data.SelectedRows?[0]; if (row != null) { FormAddFunction form = new FormAddFunction(dictionary[row.Index]); indexUpdateFunction = row.Index; form.EventNotifyAddFunction += GetNewFunction; form.Show(); } }