Exemple #1
0
 public void KeybindCollectionIntegrity()
 {
     foreach (var val in testData)
     {
         var kc = new KeybindCollection();
         for (int i = 0; i < val.Length; i++)
         {
             kc.Add(val[i]);
         }
         Assert.AreEqual(kc, Deserialize <KeybindCollection>(Serialize(kc)));
     }
 }
Exemple #2
0
        public static FormMain Create(string tileTypePath, KeybindCollection kc)
        {
            var kb = kc.ToDictionary();

            return(new FormMain(tileTypePath, kb));
        }
 public void ResetToDefault()
 {
     tempKeybinds = new KeybindCollection();
     UpdateFields();
 }