コード例 #1
0
        private void purchaseReportButton_Click(object sender, EventArgs e)
        {
            purchaseActivePanel.Show();
            salesActivePanel.Hide();

            PurchaseReportUiController purchaseReportUiController = new PurchaseReportUiController();

            mainPanel.Controls.Clear();
            purchaseReportUiController.Dock = DockStyle.Fill;
            purchaseReportUiController.BringToFront();
            purchaseReportUiController.Focus();
            mainPanel.Controls.Add(purchaseReportUiController);
        }
コード例 #2
0
        public ReportUiController()
        {
            InitializeComponent();

            purchaseActivePanel.Show();
            salesActivePanel.Hide();

            PurchaseReportUiController purchaseReportUiController = new PurchaseReportUiController();

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