private void mnuFileEditCompany_Click(object sender, EventArgs e) { if (AppConfig.CurrentCompany != null) { editCompanyForm = FormHelpers.ShowForm(ref editCompanyForm, this); editCompanyForm.Edit(AppConfig.CurrentCompany.Id); } }
private void btnAdd_Click(object sender, EventArgs e) { editCompanyForm = FormHelpers.ShowForm(ref editCompanyForm, this.MdiParent); editCompanyForm.FormClosed += EditCompanyForm_FormClosed; editCompanyForm.Edit(0); }
private void mnuMasterLedgers_Click(object sender, EventArgs e) { FormHelpers.ShowForm(CreateForm("Ledgers")); }
private void mnuMasterCategories_Click(object sender, EventArgs e) { FormHelpers.ShowForm(CreateForm("ProductCategories")); }
private void mnuFileNewCompany_Click(object sender, EventArgs e) { editCompanyForm = FormHelpers.ShowForm(ref editCompanyForm, this); editCompanyForm.Edit(0); }
private void mnuFileOpenCompany_Click(object sender, EventArgs e) { openCompanyForm = FormHelpers.ShowForm(ref openCompanyForm, this); openCompanyForm.FormClosed += OpenCompanyForm_FormClosed; }