public PostedStatusBanner(StatusBanner banner, IStatusCenterActions statusCenterActions) { this.Banner = banner; this.statusCenterActions = statusCenterActions; this.Progress = new Progress <float>(ReportProgressToBanner); this.ErrorCode = new Progress <FileSystemStatusCode>((errorCode) => ReportProgressToBanner(errorCode.ToStatus())); }