private void btnMenuReport_Click(object sender, EventArgs e) { btnMenuReport.Enabled = false; btnMenuWork.Enabled = true; btnMenuLicense.Enabled = true; panelLeft.Controls.Clear(); panelContainer.Controls.Clear(); reportlicenseaccount = new ControlReportLicenseAccount(); rpl = new ControlReportMenuLeft(); panelLeft.Controls.Add(rpl); reportlicenseaccount.Dock = DockStyle.Fill; rpl.Dock = DockStyle.Fill; GC.Collect(); }
public void ShowReportLicenseAccount(object sender, EventArgs e) { try { panelContainer.Controls.Clear(); reportlicenseaccount = new ControlReportLicenseAccount(); reportlicenseaccount.Dock = DockStyle.Fill; panelContainer.Controls.Add(reportlicenseaccount); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }