Пример #1
0
        private void AddDashBoard()
        {
            var dashBoardCtrl = new UI.Dashboard.Dashboard();

            dashBoardCtrl.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer1.Panel2.Controls.Clear();
            this.splitContainer1.Panel2.Controls.Add(dashBoardCtrl);
        }
Пример #2
0
        private void buttonVisits_Click(object sender, EventArgs e)
        {
            var dashBoardCtrl = new UI.Dashboard.Dashboard();

            dashBoardCtrl.Dock = DockStyle.Fill;
            this.splitContainer1.Panel2.Controls.Clear();
            this.splitContainer1.Panel2.Controls.Add(dashBoardCtrl);

            var visitList = new UI.VisitListCtrl(null, "economical");

            visitList.Dock       = System.Windows.Forms.DockStyle.Fill;
            visitList.OpenVisit += OnOpenVisit;
            this.splitContainer1.Panel2.Controls.Clear();
            this.splitContainer1.Panel2.Controls.Add(visitList);
        }