/// <summary> /// Posts a new banner to the Status Center control for an operation. /// It may be used to return the progress, success, or failure of the respective operation. /// </summary> /// <param name="title">Reserved for success and error banners. Otherwise, pass an empty string for this argument.</param> /// <param name="message"></param> /// <param name="initialProgress"></param> /// <param name="status"></param> /// <param name="operation"></param> /// <returns>A StatusBanner object which may be used to track/update the progress of an operation.</returns> public PostedStatusBanner PostBanner(string title, string message, float initialProgress, ReturnResult status, FileOperationType operation) { StatusBanner item = new StatusBanner(message, title, initialProgress, status, operation); StatusBannersSource.Add(item); ProgressBannerPosted?.Invoke(this, EventArgs.Empty); return(new PostedStatusBanner(item)); }
/// <summary> /// Posts a new banner to the Status Center control for an operation. /// It may be used to return the progress, success, or failure of the respective operation. /// </summary> /// <param name="title">Reserved for success and error banners. Otherwise, pass an empty string for this argument.</param> /// <param name="message"></param> /// <param name="initialProgress"></param> /// <param name="severity"></param> /// <param name="operation"></param> /// <returns>A StatusBanner object which may be used to track/update the progress of an operation.</returns> public PostedStatusBanner PostBanner(string title, string message, uint initialProgress, StatusBanner.StatusBannerSeverity severity, StatusBanner.StatusBannerOperation operation) { var item = new StatusBanner(message, title, initialProgress, severity, operation); StatusBannersSource.Add(item); ProgressBannerPosted?.Invoke(this, EventArgs.Empty); return(new PostedStatusBanner(item)); }