コード例 #1
0
 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);
     }
 }
コード例 #2
0
 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);
     }
 }