public void Dispose() { _switchDirection = null; _switchPercentage = null; _stopwatch.Stop(); _stopwatch.Reset(); Res.Clear(); }
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."); } }