Esempio n. 1
0
 private void RotationFormLoad(object sender, EventArgs e)
 {
     TBRotationName.Text    = Rotation.Name;
     CBShift.Checked        = Rotation.Shift;
     CBAlt.Checked          = Rotation.Alt;
     CBWin.Checked          = Rotation.Windows;
     CBCtrl.Checked         = Rotation.Ctrl;
     CBActive.Checked       = Rotation.Active;
     BeGlobalCooldown.Value = Rotation.GlobalCooldown;
     Rotation.Rules.GetRules.Sort();
     foreach (Rule rule in Rotation.Rules.GetRules)
     {
         AddCondition(rule, BeComRules);
     }
     foreach (KeysData item in RotationSettings.KeysList)
     {
         HotKey.Items.Add(item.Text);
     }
     if (HotKey.Items.Contains(Rotation.Key))
     {
         HotKey.SelectedIndex = HotKey.FindStringExact(Rotation.Key);
     }
     else
     {
         HotKey.SelectedIndex = 1;
     }
 }