public void OnStart() { SLS.Loan.Database.ChargeModeTermDB CM = new SLS.Loan.Database.ChargeModeTermDB(); while (pnlMain.Controls.Count > 0) pnlMain.Controls[0].Dispose(); CM.TopLevel = false; CM.Dock = DockStyle.None; CM.Visible = true; pnlMain.Visible = true; pnlMain.Controls.Add(CM); }
private void modeTermPayment_Click(object sender, EventArgs e) { SLS.Loan.Database.ChargeModeTermDB CM = new SLS.Loan.Database.ChargeModeTermDB(); while (pnlMain.Controls.Count > 0) pnlMain.Controls[0].Dispose(); CM.TopLevel = false; CM.Dock = DockStyle.None; CM.Visible = true; pnlMain.Visible = true; pnlMain.Controls.Add(CM); }