Beispiel #1
0
 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);
 }
Beispiel #3
0
 private void mnuMasterLedgers_Click(object sender, EventArgs e)
 {
     FormHelpers.ShowForm(CreateForm("Ledgers"));
 }
Beispiel #4
0
 private void mnuMasterCategories_Click(object sender, EventArgs e)
 {
     FormHelpers.ShowForm(CreateForm("ProductCategories"));
 }
Beispiel #5
0
 private void mnuFileNewCompany_Click(object sender, EventArgs e)
 {
     editCompanyForm = FormHelpers.ShowForm(ref editCompanyForm, this);
     editCompanyForm.Edit(0);
 }
Beispiel #6
0
 private void mnuFileOpenCompany_Click(object sender, EventArgs e)
 {
     openCompanyForm             = FormHelpers.ShowForm(ref openCompanyForm, this);
     openCompanyForm.FormClosed += OpenCompanyForm_FormClosed;
 }