示例#1
0
        object IN_OnChange_0(Object __EventInfo__)

        {
            Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
            try
            {
                SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
                CatchConnect.SetAnalogValue(FRIENDLYNAME.ToSimplSharpString(), (ushort)(IN.UshortValue));
            }
            catch (Exception e) { ObjectCatchHandler(e); }
            finally { ObjectFinallyHandler(__SignalEventArg__); }
            return(this);
        }
示例#2
0
        public void __SPLS_TMPVAR__WAITLABEL_0___CallbackFn(object stateInfo)
        {
            try
            {
                Wait __LocalWait__ = (Wait)stateInfo;
                SplusExecutionContext __context__ = SplusThreadStartCode(__LocalWait__);
                __LocalWait__.RemoveFromList();


                CatchConnect.InitializeAnalog(FRIENDLYNAME.ToSimplSharpString());

                __context__.SourceCodeLine = 154;
                ANALOGEVENTS.Initialize(FRIENDLYNAME.ToSimplSharpString());
                __context__.SourceCodeLine = 155;
                // RegisterDelegate( ANALOGEVENTS , ONANALOGEVENT , CALLBACKEVENTHANDLER )
                ANALOGEVENTS.OnAnalogEvent = CALLBACKEVENTHANDLER;;
                __context__.SourceCodeLine = 156;
                CatchConnect.SetAnalogValue(FRIENDLYNAME.ToSimplSharpString(), (ushort)(IN.UshortValue));
            }
            catch (Exception e) { ObjectCatchHandler(e); }
            finally { ObjectFinallyHandler(); }
        }