public virtual void ImportGestures(AbstractApp from) { foreach (var kv in from.GestureIntents) { GestureIntents.AddOrReplace(kv.Value); } }
public virtual GestureIntent Find(Gesture key) { // Console.WriteLine("Find("+key.ToString()+")"); GestureIntent val; GestureIntents.TryGetValue(key.GetHashCode(), out val); //if(val!=null)Console.WriteLine("Found? "+val.ToString()); return(val); }
public virtual void Remove(GestureIntent intent) { GestureIntents.Remove(intent); }
public virtual void Add(GestureIntent intent) { GestureIntents.Add(intent.Gesture.GetHashCode(), intent); }
public virtual void Add(GestureIntent intent) { GestureIntents.Add(intent.Gesture, intent); }