Example #1
0
 public static ModeAction Create(string name)
 {
     lock (_Instances)
     {
         ModeAction a;
         if (!_Instances.TryGetValue(name, out a))
         {
             a = new ModeAction(name);
             _Instances.Add(name, a);
         }
         return(a);
     }
 }
Example #2
0
 public static ModeAction Create(string name)
 {
     lock (_Instances)
     {
         ModeAction a;
         if (!_Instances.TryGetValue(name, out a))
         {
             a = new ModeAction(name);
             _Instances.Add(name, a);
         }
         return a;
     }
 }