Exemple #1
0
        private void reportButton_Click(object sender, EventArgs e)
        {
            ClearAllUserController();

            activePanel.Height = reportButton.Height;
            activePanel.Top    = reportButton.Top;


            reportUiController = new ReportUiController();
            mainPanel.Controls.Clear();
            reportUiController.Dock = DockStyle.Fill;
            reportUiController.BringToFront();
            reportUiController.Focus();
            mainPanel.Controls.Add(reportUiController);
        }
Exemple #2
0
        private void reportButton_Click(object sender, EventArgs e)
        {
            activePanel.Height = reportButton.Height;
            activePanel.Top    = reportButton.Top;


            ReportUiController reportUiController = new ReportUiController();

            mainPanel.Controls.Clear();
            reportUiController.Dock = DockStyle.Fill;
            reportUiController.BringToFront();
            reportUiController.Focus();
            mainPanel.Controls.Add(reportUiController);

            //ReportUi reportUi = new ReportUi();
            //reportUi.TopLevel = false;
            //mainPanel.Controls.Clear();
            //reportUi.Dock = DockStyle.Fill;
            //reportUi.BringToFront();
            //reportUi.Focus();
            //mainPanel.Controls.Add(reportUi);
        }