public void ShowBusyWindow(string message) { lock (_lockShowBusy) { _showBusyCount++; if (_busy == null) { _busy = new BusyWindow(); _busy.SetMessage(message); _busy.Show(); } } }
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(); }