/// <summary> /// Initializes the popup manager. /// </summary> protected void InitializePopupManager() { Collection <string> titles = new Collection <string>(); TraceFactory.Logger.Debug("Initializing Popup Manager."); titles.Add("Save the file as"); //.xps popup PopupAssassin = new PopupAssassin(titles); PopupAssassin.Start(new TimeSpan(0, 0, 5)); }
/// <summary> /// Releases unmanaged and - optionally - managed resources /// </summary> /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param> protected override void Dispose(bool disposing) { if (disposing) { if (PopupAssassin != null) { PopupAssassin.Stop(); PopupAssassin = null; } } base.Dispose(disposing); }
/// <summary> /// Kill the Windows message box and stop the thread /// </summary> /// <param name="confirmationMsgBoxThread"></param> private void KillMessageBox(Thread confirmationMsgBoxThread) { PopupAssassin.KillWindow(PRINTER_ERROR_WINDOW_TITLE); confirmationMsgBoxThread.Abort(); }