Example #1
0
 public void Dispose()
 {
     try {
         _settingSubscription?.Dispose();
         foreach (var display in _displays.Values.ToArray())
         {
             display.Dispatcher.Invoke(() => display.Close());
         }
         Res.Clear();
         _displays.Clear();
         _droppedData.Clear();
         _instance = null;
     } catch (TaskCanceledException e) {
         Logger.Warn(e, "Could not hide DMD because task was already canceled.");
     }
 }
Example #2
0
 public static VirtualAlphanumericDestination GetInstance(Dispatcher dispatcher, RasterizeStyleDefinition styleDef, Configuration config)
 {
     return(_instance ?? (_instance = new VirtualAlphanumericDestination(dispatcher, styleDef, config)));
 }