private static UiBlocker InternalCreate(string msg) { _current?.Dismiss(); var curtain = new UiBlocker(); curtain.UpdateProgress(msg); _current = curtain; return(curtain); }
public void Dismiss() { try { if (_popup != null) { _popup.IsOpen = false; } _popup = null; _current = null; } catch { // ignored } }