private void OnSessionError(int hrError) { this._burnError = new HRESULT(hrError); bool flag = false; foreach (BurnSessionItem burnSessionItem in this._items) { if (burnSessionItem.ErrorCode != 0) { flag = true; break; } } foreach (BurnSessionItem burnSessionItem in this._items) { if (!flag) { burnSessionItem.ErrorCode = hrError; } else if (burnSessionItem.ErrorCode == 0) { burnSessionItem.BurnCanceled = true; } } Shell.ShowErrorDialog(hrError, StringId.IDS_BURN_FAILED); }
private void RadioStationAsyncCallback(HRESULT hr) { if (!hr.IsSuccess) { Shell.ShowErrorDialog(hr.Int, StringId.IDS_RADIO_ERROR); } this.RefreshStationList(); }
public static void ShowRentalExpiredError() => Shell.ShowErrorDialog(HRESULT._NS_E_DRM_RENTAL_LICENSE_EXPIRED.Int, StringId.IDS_PLAYBACK_ERROR);
public static void ShowDeviceRentalError() => Shell.ShowErrorDialog(HRESULT._NS_E_DRM_DEVICE_RENTAL_LICENSE.Int, StringId.IDS_PLAYBACK_ERROR);