예제 #1
0
 public static MessageTouchDevice GetDevice(Window window, int dwId)
 {
     if (!Devices.TryGetValue(dwId, out var device))
     {
         device = new MessageTouchDevice(dwId, window);
         Devices.Add(dwId, device);
     }
     return(device);
 }
예제 #2
0
 public static void Remove(MessageTouchDevice device)
 {
     Devices.Remove(device.Id);
 }