private void côngNơToolStripMenuItem_Click(object sender, EventArgs e) { lblTitle.Text = "Báo cáo công nợ"; UCReportCongNo uc = new UCReportCongNo(); addControlToPanel(uc); }
private void barBtnCongNo_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { XtraUserControl xtraUserControl = new UCReportCongNo(); xtraUserControl.Name = barBtnCongNo.Name + "UControl"; xtraUserControl.Text = barBtnCongNo.Caption; xtraUserControl.Dock = DockStyle.Fill; lblCurrent.Caption = "Báo cáo công nợ"; addTab(xtraUserControl); }