public static void Show(Rect rectangle, Color color, TimeSpan duration) { Show(() => { window?.Close(); window = new OverlayRectangleWindow(rectangle, color, duration); window.Show(); }); }
public static void CloseCurrent() { window?.Dispatcher.Invoke(() => window.Close()); }