Example #1
0
        private void ShowStepOne()
        {
            panelMaster.Controls.Clear();

            PlanAppointListControl control = new PlanAppointListControl(Database);

            control.Dock = DockStyle.Fill;
            panelMaster.Controls.Add(control);
        }
Example #2
0
        private void ShowStepOne()
        {
            panelMaster.Controls.Clear();

            PlanAppointListControl control = new PlanAppointListControl(Database);

            control.Dock = DockStyle.Fill;

            control.ItemSelected += planAppointSelected;
            btnNext.Click        += control.BtnNextPressed;

            panelMaster.Controls.Add(control);
        }
Example #3
0
        void planAppointSelected(object sender, ItemEventArgs e)
        {
            Text = ((PlanAppoint)e.Item).ToString();

            PlanAppointListControl control = (PlanAppointListControl)sender;

            control.ItemSelected -= planAppointSelected;
            btnNext.Click        -= control.BtnNextPressed;

            panelMaster.Controls.Clear();

            PlanAppointControl control1 = new PlanAppointControl(Database, (PlanAppoint)e.Item);

            control1.Dock  = DockStyle.Fill;
            btnNext.Click += control1.BtnNextClick;
            panelMaster.Controls.Add(control1);
        }