예제 #1
0
            private void Callback(object aResult)
            {
                try
                {
                    iHandler.ReadBegin(aResult);
                    EventArgsResponse result = new EventArgsResponse(iHandler);
                    iHandler.ReadEnd();

                    if (EventResponse != null)
                    {
                        EventResponse(iService, result);
                    }
                }
                catch (SoapException e)
                {
                    EventArgsError error = iService.CreateEventArgsError(ref e);

                    if (EventError != null)
                    {
                        EventError(this, error);
                    }
                }
                catch (Exception e)
                {
                    UserLog.WriteLine("Debug.AsyncActionMemWrite.Callback(" + iService.ControlUri + "): " + e.Message);
                }
            }
예제 #2
0
        private void InvokeActionError(object obj, EventArgsError e)
        {
            iActionInsert.EventResponse               -= InvokeActionInsert;
            iActionInsert.EventError                  -= InvokeActionError;
            iActionPlay.EventResponse                 -= InvokeActionPlay;
            iActionPlay.EventError                    -= InvokeActionError;
            iActionSetRepeat.EventResponse            -= InvokeActionSetRepeat;
            iActionSetRepeat.EventError               -= InvokeActionError;
            iActionDeleteAll.EventResponse            -= InvokeActionDeleteAllStart;
            iActionDeleteAll.EventResponse            -= InvokeActionDeleteAllStop;
            iActionDeleteAll.EventError               -= InvokeActionError;
            iActionStandby.EventResponse              -= InvokeActionStandby;
            iActionStandby.EventError                 -= InvokeActionError;
            iActionSetStandby.EventResponse           -= InvokeActionSetStandby;
            iActionSetStandby.EventError              -= InvokeActionError;
            iActionSourceIndex.EventResponse          -= InvokeActionSourceIndex;
            iActionSourceIndex.EventError             -= InvokeActionError;
            iActionSetSourceIndex.EventResponse       -= InvokeActionSetSourceIndex;
            iActionSetSourceIndex.EventError          -= InvokeActionError;
            iActionSetSourceIndexByName.EventResponse -= InvokeActionSetSourceIndexByName;
            iActionSetSourceIndexByName.EventError    -= InvokeActionError;
            iActionVolumeInc.EventResponse            -= InvokeActionVolumeInc;
            iActionVolumeInc.EventError               -= InvokeActionError;
            iActionVolumeDec.EventResponse            -= InvokeActionVolumeDec;
            iActionVolumeDec.EventError               -= InvokeActionError;

            PlaybackError("(Event Action Error) " + e.Code + ", " + e.Description);
        }
예제 #3
0
        private void SetParameterError(object obj, EventArgsError e)
        {
            string errorMessage = "Set Parameter Error: " + e.Code + ", " + e.Description;

            UserLog.WriteLine(errorMessage);

            if (EventSetupError != null)
            {
                EventSetupError(this, new EventArgsSetupError(errorMessage));
            }
        }
예제 #4
0
파일: Boxes.cs 프로젝트: daviddw/oss-public
        private void DeviceInfoError(object obj, EventArgsError e)
        {
            lock (iLock)
            {
                iActionDeviceInfo.EventResponse -= DeviceInfoDetails;
                iActionDeviceInfo.EventError    -= DeviceInfoError;

                // old device won't have DeviceInfo action, so get product id, sw version, board info, using separate actions instead

                iActionSoftwareVersion = iServiceVolkano.CreateAsyncActionSoftwareVersion();
                iActionSoftwareVersion.EventResponse += SoftwareVersionDetails;
                iActionSoftwareVersion.SoftwareVersionBegin();

                iActionProductId = iServiceVolkano.CreateAsyncActionProductId();
                iActionProductId.EventResponse += ProductIdDetails;
                iActionProductId.ProductIdBegin();

                iActionMaxBoards = iServiceVolkano.CreateAsyncActionMaxBoards();
                iActionMaxBoards.EventResponse += MaxBoardDetails;
                iActionMaxBoards.MaxBoardsBegin();
            }
        }