private void transactionToolStripMenuItem_Click(object sender, EventArgs e) { try { frmPaymentToSupplier form = new frmPaymentToSupplier(); ExtensionMethods.AddTrasanctionFormToPanel(form, pnlMain); form.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void modifyToolStripMenuItem1_Click(object sender, EventArgs e) { try { frmPaymentToSupplier formPayment = new frmPaymentToSupplier(); ExtensionMethods.AddTrasanctionFormToPanel(formPayment, pnlMain); formPayment.ConfigureUIForModification(); formPayment.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }