Esempio n. 1
0
        public void SaveRaid()
        {
            CalculationOptionsWarlock options = Character.CalculationOptions as CalculationOptionsWarlock;

            options.NumRaidWarlocks      = numWarlocks;
            options.NumRaidShadowPriests = numShadowPriests;

            for (int i = 0; i < 5; i++)
            {
                WarlockControl control = (WarlockControl)this.groupBoxWarlocks.Controls["suWarlock" + (i + 1)];
                SUWarlock      warlock = options.RaidWarlocks[i];

                warlock.HitPercent  = control.HitPercent;
                warlock.CritPercent = control.CritPercent;
                warlock.SbCastTime  = control.SbCastTime;
                warlock.SbCastRatio = control.SbCastRatio;
                warlock.ShadowDps   = control.ShadowDps;
            }

            for (int i = 0; i < 5; i++)
            {
                ShadowPriestControl control = (ShadowPriestControl)this.groupBoxShadowPriests.Controls["suShadowPriest" + (i + 1)];
                SUShadowPriest      sp      = options.RaidShadowPriests[i];

                sp.HitPercent  = control.HitPercent;
                sp.MbFrequency = control.MbFrequency;
                sp.ShadowDps   = control.ShadowDps;
            }
        }
Esempio n. 2
0
        public void LoadRaid()
        {
            CalculationOptionsWarlock options = Character.CalculationOptions as CalculationOptionsWarlock;

            numWarlocks      = options.NumRaidWarlocks;
            numShadowPriests = options.NumRaidShadowPriests;
            comboBoxNumWarlocks.SelectedIndex      = numWarlocks;
            comboBoxNumShadowPriests.SelectedIndex = numShadowPriests;

            for (int i = 0; i < 5; i++)
            {
                WarlockControl control = (WarlockControl)this.groupBoxWarlocks.Controls["suWarlock" + (i + 1)];
                SUWarlock      warlock = options.RaidWarlocks[i];

                control.HitPercent  = warlock.HitPercent;
                control.CritPercent = warlock.CritPercent;
                control.SbCastTime  = warlock.SbCastTime;
                control.SbCastRatio = warlock.SbCastRatio;
                control.ShadowDps   = warlock.ShadowDps;
            }

            for (int i = 0; i < 5; i++)
            {
                ShadowPriestControl control = (ShadowPriestControl)this.groupBoxShadowPriests.Controls["suShadowPriest" + (i + 1)];
                SUShadowPriest      sp      = options.RaidShadowPriests[i];

                control.HitPercent  = sp.HitPercent;
                control.MbFrequency = sp.MbFrequency;
                control.ShadowDps   = sp.ShadowDps;
            }
        }