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); }
public static void Remove(MessageTouchDevice device) { Devices.Remove(device.Id); }