private void btnBalance_Click(object sender, EventArgs e) { if (!FrmBalance.IsHandleCreated) { FrmBalance = new BalanceForm(); } FrmBalance.Show(dockPanel, DockState.DockRight); }
private void View_ShowBalances() { var form = new BalanceForm { MdiParent = View.MdiParentForm }; var balancesPresenter = new BalancePresenter(form, new BalanceModel(_model.DomainModel)); balancesPresenter.Run(); }