private void editToolStripMenuItem_Click(object sender, EventArgs e) { try { AddEditForm addEditForm = new AddEditForm(invoices, lvFolderList.FocusedItem.Text); addEditForm.FormClosed += addEditForm_OnFormClosed; addEditForm.ShowDialog(); } catch (Exception ex) { logger.Error("Class: " + this.GetType().FullName + "; Method: " + System.Reflection.MethodBase.GetCurrentMethod().Name + "; Message: " + ex.Message); } }
private void btnAddNew_Click(object sender, EventArgs e) { try { AddEditForm addEditForm = new AddEditForm(invoices); addEditForm.FormClosed += addEditForm_OnFormClosed; addEditForm.ShowDialog(); } catch (Exception ex) { logger.Error("Class: " + this.GetType().FullName + "; Method: " + System.Reflection.MethodBase.GetCurrentMethod().Name + "; Message: " + ex.Message); } }