private void ShowNewForm(object sender, EventArgs e) { ZafrFinancialLedger childForm = new ZafrFinancialLedger(); WorkingLedgers.Add(childForm, new ZaLedger()); childForm.btnNewButton_Click(sender, e); childForm.MdiParent = this; childForm.Text = childForm.Name; childForm.Show(); }
private void OpenFile(object sender, EventArgs e) { ZafrFinancialLedger childForm = new ZafrFinancialLedger(CurrentLedger); childForm.btnOpenItemList_Click(sender, e); childForm.MdiParent = this; childForm.Text = childForm.Name; childForm.Show(); }