private ErrorDialogInfo(int hr, eErrorCondition condition, string title, string description) : base("res://ZuneShellResources!ErrorDialog.uix#ErrorDialogContentUI") { this._title = title; this._hrOriginal = hr; this._condition = condition; ErrorMapperResult descriptionAndUrl = ErrorMapperApi.GetMappedErrorDescriptionAndUrl(this._hrOriginal, this._condition); this._hr = descriptionAndUrl.Hr; this._description = description ?? descriptionAndUrl.Description; this._webHelpUrl = descriptionAndUrl.WebHelpUrl; }
internal static void Show(int hr, eErrorCondition condition, string title, string description) => new ErrorDialogInfo(hr, condition, title, description).Show();
internal static void Show(int hr, eErrorCondition condition, string title) => Show(hr, condition, title, null);