public static void Hide()
 {
     if (wnd != null)
     {
         wnd.Close();
         wnd = null;
     }
 }
Exemple #2
0
 public void CloseAllBusyWindow()
 {
     lock (_lockShowBusy)
     {
         _showBusyCount = 0;
         if (_busy != null)
         {
             _busy.Close();
             _busy = null;
         }
     }
 }
Exemple #3
0
        public void ShowBusyWindow(string message)
        {
            lock (_lockShowBusy)
            {
                _showBusyCount++;

                if (_busy == null)
                {
                    _busy = new BusyWindow();
                    _busy.SetMessage(message);
                    _busy.Show();
                }
            }
        }
 public void Start(string operationName = null, string firstOperationPart = null)
 {
     ExecuteAsync(() =>
     {
         _progressWindow = new BusyWindow();
         if (!String.IsNullOrWhiteSpace(operationName))
         {
             string localizedName          = operationName.Localize();
             _progressWindow.WindowTitle   = localizedName;
             _progressWindow.OperationName = localizedName + " ...";
         }
         if (!String.IsNullOrWhiteSpace(firstOperationPart))
         {
             _progressWindow.OperationName = firstOperationPart.Localize() + " ...";
         }
         _progressWindow.ShowDialog();
     });
 }
        public static void Show(string msg = null)
        {
            if (wnd != null)
            {
                return;
            }

            wnd = new BusyWindow();
            if (msg == null)
            {
                wnd.lblMsg.Content = "Please, wait...";
                //wnd.busy.BusyContent = "Please, wait...";
            }
            else
            {
                wnd.lblMsg.Content = msg;
                //wnd.busy.BusyContent = msg;
            }

            wnd.Show();
        }