TrayIconProvider(InProgressWindow window) : this((Window)window) { window.ProcessingCompleted += (s, e) => { window.Title = "Analysis Complete"; HandleStateChanged(s, e); }; }
/// <summary> /// Creates a new instance of the MinimizeToTrayInstance class. /// </summary> /// <param name = "window">Window instance to attach to.</param> public static TrayIconProvider FromInProgressWindow(InProgressWindow window) => new TrayIconProvider(window);