Beispiel #1
0
 private void AddRotation(Combos c)
 {
     this.RemoveRotation(c);
     this.rotations.Add(c);
 }
Beispiel #2
0
 private void RemoveRotation(Combos c)
 {
     Combos item = this.ReturnRotationByName(c.ComboName);
     if (item != null)
     {
         this.rotations.Remove(item);
     }
 }
Beispiel #3
0
 private void SaveRotation()
 {
     List<Skill> list = new List<Skill>();
     Combos c = new Combos {
         ComboName = this.ComboName.Text
     };
     foreach (object obj2 in this.ComboSkill.Items)
     {
         try
         {
             string itemText = this.ComboSkill.GetItemText(obj2);
             if (!list.Contains(this.ConvertToSkill(obj2)) && (itemText.Length > 0))
             {
                 list.Add(this.ConvertToSkill(obj2));
             }
         }
         catch
         {
         }
     }
     this.AddRotation(c);
 }
Beispiel #4
0
 private void LoadCombos()
 {
     this.rotations.Clear();
     if (Globals.Settings.NewComboSkills.Count == 0)
     {
         Combos item = new Combos {
             ComboName = "Old Rotation",
             ComboSkills = Globals.Settings.ComboSkills
         };
         Globals.Settings.NewComboSkills.Add(item);
     }
     foreach (Combos combos2 in Globals.Settings.NewComboSkills)
     {
         this.CombosName.Items.Add(combos2.ComboName);
         bool flag = true;
         if (flag)
         {
             flag = false;
             this.LoadGenericList(this.ComboSkill.Items, combos2.ComboSkills);
         }
         this.rotations.Add(combos2);
     }
 }