Example #1
0
 public virtual void ImportGestures(AbstractApp from)
 {
     foreach (var kv in from.GestureIntents)
     {
         GestureIntents.AddOrReplace(kv.Value);
     }
 }
Example #2
0
        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);
        }
Example #3
0
 public virtual void Remove(GestureIntent intent)
 {
     GestureIntents.Remove(intent);
 }
Example #4
0
 public virtual void Add(GestureIntent intent)
 {
     GestureIntents.Add(intent.Gesture.GetHashCode(), intent);
 }
Example #5
0
 public virtual void Add(GestureIntent intent)
 {
     GestureIntents.Add(intent.Gesture, intent);
 }