Inheritance: System.Windows.Forms.UserControl
        private void WizardMain_Load(object sender, EventArgs e)
        {
            Closing += new CancelEventHandler(WizardMain_Closing);

            _mainCount = Controls.Count;
            _stepCount = _mainCount; // set start point

            _ucDemonbuddy      = new DemonbuddyOptions(this);
            _ucDiablo          = new DiabloOptions(this);
            _ucWeekSchedule    = new WeekSchedule(this);
            _ucHeroes          = new Heroes(this);
            _ucProfileSchedule = new ProfileSchedule(this);
            _ucAdvanced        = new Advanced(this);


            Controls.Add(_ucDemonbuddy);
            Controls.Add(_ucDiablo);
            Controls.Add(_ucWeekSchedule);
            //Controls.Add(ucHeroes);
            Controls.Add(_ucProfileSchedule);
            Controls.Add(_ucAdvanced);
            _ucDiablo.Visible = _ucWeekSchedule.Visible = _ucProfileSchedule.Visible = _ucHeroes.Visible = _ucAdvanced.Visible = false;
            FinishCount       = Controls.Count - 1; // Get Finish count

            AffinityDiablo     = new SetAffinity();
            AffinityDemonbuddy = new SetAffinity();

            if (bot != null)
            {
                LoadData();
            }
        }
Esempio n. 2
0
        private void WizardMain_Load(object sender, EventArgs e)
        {
            Closing += WizardMain_Closing;

            _mainCount = Controls.Count;
            _stepCount = _mainCount; // set start point

            _ucDemonbuddy = new DemonbuddyOptions(this);
            _ucDiablo = new DiabloOptions(this);
            _ucWeekSchedule = new WeekSchedule(this);
            _ucHeroes = new Heroes(this);
            _ucProfileSchedule = new ProfileSchedule(this);
            _ucAdvanced = new Advanced(this);

            Controls.Add(_ucDemonbuddy);
            Controls.Add(_ucDiablo);
            Controls.Add(_ucWeekSchedule);
            //Controls.Add(ucHeroes);
            Controls.Add(_ucProfileSchedule);
            Controls.Add(_ucAdvanced);
            _ucDiablo.Visible =
                _ucWeekSchedule.Visible = _ucProfileSchedule.Visible = _ucHeroes.Visible = _ucAdvanced.Visible = false;

            FinishCount = Controls.Count - 1; // Get Finish count

            AffinityDiablo = new SetAffinity();
            AffinityDemonbuddy = new SetAffinity();

            if (bot != null)
                LoadData();
        }