예제 #1
0
        private static UiBlocker InternalCreate(string msg)
        {
            _current?.Dismiss();

            var curtain = new UiBlocker();

            curtain.UpdateProgress(msg);

            _current = curtain;
            return(curtain);
        }
예제 #2
0
 public void Dismiss()
 {
     try
     {
         if (_popup != null)
         {
             _popup.IsOpen = false;
         }
         _popup   = null;
         _current = null;
     }
     catch
     {
         // ignored
     }
 }