public void Dispose() { FilesSavingQueue.FlushSynchroniously(); if (calibration_window != null) { calibration_window.Close(); calibration_window = null; } }
public static void ToggleCalibrationWindow() { application.Dispatcher.BeginInvoke(new Action(() => { if (calibration_window == null) { calibration_window = new CalibrationWindow(); calibration_window.Show(); } else { calibration_window.Close(); calibration_window = null; } })); }