Пример #1
0
        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);
        }
Пример #2
0
 private void RadioStationAsyncCallback(HRESULT hr)
 {
     if (!hr.IsSuccess)
     {
         Shell.ShowErrorDialog(hr.Int, StringId.IDS_RADIO_ERROR);
     }
     this.RefreshStationList();
 }
Пример #3
0
 public static void ShowRentalExpiredError() => Shell.ShowErrorDialog(HRESULT._NS_E_DRM_RENTAL_LICENSE_EXPIRED.Int, StringId.IDS_PLAYBACK_ERROR);
Пример #4
0
 public static void ShowDeviceRentalError() => Shell.ShowErrorDialog(HRESULT._NS_E_DRM_DEVICE_RENTAL_LICENSE.Int, StringId.IDS_PLAYBACK_ERROR);