Example #1
0
 public void addServiceUI()
 {
     if (tab_statistics.SelectedIndex == 0)
     {
         service = new SERVICE_REPORT_UI();
         service.Dock = DockStyle.Fill;
         this.tabPageBCN.Controls.Add(service);
     }
     if (tab_statistics.SelectedIndex == 1)
     {
         REVENUE_REPORT_UI revenue = new REVENUE_REPORT_UI();
         revenue.Dock = DockStyle.Fill;
         this.tabPage_revenue.Controls.Add(revenue);
     }
 }
Example #2
0
        private void tab_selected(object sender, TabControlEventArgs e)
        {
            if (tab_statistics.SelectedIndex == 0)
            {
                if(service!=null)
                {
                    service.load();
                }
                else
                {
                    service = new SERVICE_REPORT_UI();
                    service.Dock = DockStyle.Fill;
                    this.tabPageBCN.Controls.Add(service);
                }

            }
            if (tab_statistics.SelectedIndex == 1)
            {
                REVENUE_REPORT_UI revenue = new REVENUE_REPORT_UI();
                revenue.Dock = DockStyle.Fill;
                this.tabPage_revenue.Controls.Add(revenue);
            }
        }