public void __SPLS_TMPVAR__WAITLABEL_19___CallbackFn(object stateInfo) { try { Wait __LocalWait__ = (Wait)stateInfo; SplusExecutionContext __context__ = SplusThreadStartCode(__LocalWait__); __LocalWait__.RemoveFromList(); __context__.SourceCodeLine = 17; if (Functions.TestForTrue((Functions.BoolToInt((Functions.TestForTrue(Functions.BoolToInt((Functions.TestForTrue(Functions.BoolToInt((Functions.TestForTrue(Functions.BoolToInt((Functions.TestForTrue(Functions.BoolToInt(Byte(RX_FROM_PROJ__DOLLAR__, (int)(1)) == 76)) && Functions.TestForTrue(Functions.BoolToInt(Byte(RX_FROM_PROJ__DOLLAR__, (int)(2)) == 65))))) && Functions.TestForTrue(Functions.BoolToInt(Byte(RX_FROM_PROJ__DOLLAR__, (int)(3)) == 77))))) && Functions.TestForTrue(Functions.BoolToInt(Byte(RX_FROM_PROJ__DOLLAR__, (int)(4)) == 80))))) && Functions.TestForTrue(Functions.BoolToInt(Byte(RX_FROM_PROJ__DOLLAR__, (int)(5)) == 61))))))) { __context__.SourceCodeLine = 23; TEMP__DOLLAR__.UpdateValue(RX_FROM_PROJ__DOLLAR__); __context__.SourceCodeLine = 24; LOCATION = (ushort)(Functions.Find("\u000d", RX_FROM_PROJ__DOLLAR__)); __context__.SourceCodeLine = 25; TEMP__DOLLAR__.UpdateValue(Functions.Left(TEMP__DOLLAR__, (int)((LOCATION - 1)))); __context__.SourceCodeLine = 26; LENGTH = (ushort)(Functions.Length(TEMP__DOLLAR__)); __context__.SourceCodeLine = 27; LENGTH = (ushort)((LENGTH - 5)); __context__.SourceCodeLine = 28; TEMP__DOLLAR__.UpdateValue(Functions.Right(TEMP__DOLLAR__, (int)(LENGTH))); __context__.SourceCodeLine = 29; MakeString(LAMP_HOURS, "{0}", TEMP__DOLLAR__); } } catch (Exception e) { ObjectCatchHandler(e); } finally { ObjectFinallyHandler(); } }
private CrestronString CREATEWOLSTRING(SplusExecutionContext __context__, CrestronString MACADDRESS) { CrestronString WOLSTRING; WOLSTRING = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 255, this); ushort I = 0; __context__.SourceCodeLine = 135; WOLSTRING.UpdateValue(FF); __context__.SourceCodeLine = 136; ushort __FN_FORSTART_VAL__1 = (ushort)(1); ushort __FN_FOREND_VAL__1 = (ushort)16; int __FN_FORSTEP_VAL__1 = (int)1; for (I = __FN_FORSTART_VAL__1; (__FN_FORSTEP_VAL__1 > 0) ? ((I >= __FN_FORSTART_VAL__1) && (I <= __FN_FOREND_VAL__1)) : ((I <= __FN_FORSTART_VAL__1) && (I >= __FN_FOREND_VAL__1)); I += (ushort)__FN_FORSTEP_VAL__1) { __context__.SourceCodeLine = 138; WOLSTRING.UpdateValue(WOLSTRING + MACADDRESS); __context__.SourceCodeLine = 136; } __context__.SourceCodeLine = 140; return(WOLSTRING); }
object SEQUENCE_BUSY_OnRelease_0(Object __EventInfo__) { Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__; try { SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__); __context__.SourceCodeLine = 157; if (Functions.TestForTrue((Functions.Length(_SQUEDCHANNEL)))) { __context__.SourceCodeLine = 159; if (Functions.TestForTrue((Functions.BoolToInt(DELAY_BETWEEN_SEQUENCES.Value > 0)))) { __context__.SourceCodeLine = 161; Functions.Delay((int)(DELAY_BETWEEN_SEQUENCES.Value)); } __context__.SourceCodeLine = 164; SENDCHANNEL(__context__, _SQUEDCHANNEL); __context__.SourceCodeLine = 165; _SQUEDCHANNEL.UpdateValue(""); } } catch (Exception e) { ObjectCatchHandler(e); } finally { ObjectFinallyHandler(__SignalEventArg__); } return(this); }
private void SENDCHANNEL(SplusExecutionContext __context__, CrestronString SCHANNEL) { CrestronString SADJUSTED; SADJUSTED = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 10, this); __context__.SourceCodeLine = 130; if (Functions.TestForTrue((Functions.BoolToInt(Functions.Length(SCHANNEL) < MIN_CHANNEL_LEN.UshortValue)))) { __context__.SourceCodeLine = 132; SADJUSTED.UpdateValue(PADCHANNEL(__context__, SCHANNEL)); } else { __context__.SourceCodeLine = 136; SADJUSTED.UpdateValue(SCHANNEL); } __context__.SourceCodeLine = 139; if (Functions.TestForTrue((NEED_ENTER.Value))) { __context__.SourceCodeLine = 140; CHANNEL_OUT__DOLLAR__.UpdateValue(SADJUSTED + "!"); } else { __context__.SourceCodeLine = 142; CHANNEL_OUT__DOLLAR__.UpdateValue(SADJUSTED); } }
private CrestronString PADCHANNEL(SplusExecutionContext __context__, CrestronString SCHANNEL) { CrestronString SADJUSTED; SADJUSTED = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 10, this); ushort I = 0; ushort IPADQTY = 0; __context__.SourceCodeLine = 113; IPADQTY = (ushort)((MIN_CHANNEL_LEN.UshortValue - Functions.Length(SCHANNEL))); __context__.SourceCodeLine = 115; SADJUSTED.UpdateValue(""); __context__.SourceCodeLine = 116; ushort __FN_FORSTART_VAL__1 = (ushort)(1); ushort __FN_FOREND_VAL__1 = (ushort)IPADQTY; int __FN_FORSTEP_VAL__1 = (int)1; for (I = __FN_FORSTART_VAL__1; (__FN_FORSTEP_VAL__1 > 0) ? ((I >= __FN_FORSTART_VAL__1) && (I <= __FN_FOREND_VAL__1)) : ((I <= __FN_FORSTART_VAL__1) && (I >= __FN_FOREND_VAL__1)); I += (ushort)__FN_FORSTEP_VAL__1) { __context__.SourceCodeLine = 118; SADJUSTED.UpdateValue(SADJUSTED + "0"); __context__.SourceCodeLine = 116; } __context__.SourceCodeLine = 121; SADJUSTED.UpdateValue(SADJUSTED + SCHANNEL); __context__.SourceCodeLine = 123; return(SADJUSTED); }
object FROM_RV_ROOMLISTREPONSE__DOLLAR___OnChange_4(Object __EventInfo__) { Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__; try { SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__); __context__.SourceCodeLine = 436; if (Functions.TestForTrue((G_BRXOK))) { __context__.SourceCodeLine = 438; G_BRXOK = (ushort)(0); __context__.SourceCodeLine = 440; while (Functions.TestForTrue((1))) { __context__.SourceCodeLine = 442; G_SDATA.UpdateValue(Functions.Gather("</RoomListResponse>", FROM_RV_ROOMLISTREPONSE__DOLLAR__)); __context__.SourceCodeLine = 444; if (Functions.TestForTrue((Functions.Find(G_SREQUESTID, G_SDATA)))) { __context__.SourceCodeLine = 446; PROCESSDATA(__context__); } __context__.SourceCodeLine = 440; } } } catch (Exception e) { ObjectCatchHandler(e); } finally { ObjectFinallyHandler(__SignalEventArg__); } return(this); }
private void SENDSCENELOAD(SplusExecutionContext __context__, ushort INDEX) { __context__.SourceCodeLine = 146; STOREDCOMMANDSTRING.UpdateValue("/" + Functions.Chr((int)(81)) + Functions.Chr((int)(0)) + Functions.Chr((int)(52)) + Functions.Chr((int)(81)) + "\\"); __context__.SourceCodeLine = 147; MakeString(ROUTETOSCENES [INDEX], "001{0}", STOREDCOMMANDSTRING); }
private CrestronString GETBOUNDSTRING(SplusExecutionContext __context__, CrestronString SOURCE, CrestronString STARTSTRING, CrestronString ENDSTRING) { ushort STARTINDEX = 0; ushort ENDINDEX = 0; CrestronString RESPONSE; RESPONSE = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 150, this); __context__.SourceCodeLine = 114; RESPONSE.UpdateValue(""); __context__.SourceCodeLine = 116; if (Functions.TestForTrue((Functions.BoolToInt(Functions.Length(SOURCE) > 0)))) { __context__.SourceCodeLine = 118; STARTINDEX = (ushort)(Functions.Find(STARTSTRING, SOURCE)); __context__.SourceCodeLine = 119; ENDINDEX = (ushort)(Functions.Find(ENDSTRING, SOURCE, (STARTINDEX + 1))); __context__.SourceCodeLine = 121; if (Functions.TestForTrue((Functions.BoolToInt((Functions.TestForTrue(Functions.BoolToInt(STARTINDEX > 0)) && Functions.TestForTrue(Functions.BoolToInt(STARTINDEX < ENDINDEX))))))) { __context__.SourceCodeLine = 123; STARTINDEX = (ushort)((STARTINDEX + Functions.Length(STARTSTRING))); __context__.SourceCodeLine = 125; RESPONSE.UpdateValue(Functions.Mid(SOURCE, (int)(STARTINDEX), (int)((ENDINDEX - STARTINDEX)))); } } __context__.SourceCodeLine = 129; return(RESPONSE); }
private CrestronString GETNEXTCOMMAND(SplusExecutionContext __context__) { CrestronString RETURNSTRING; RETURNSTRING = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 25, this); __context__.SourceCodeLine = 85; RETURNSTRING.UpdateValue(""); __context__.SourceCodeLine = 86; if (Functions.TestForTrue((Functions.BoolToInt(COMMANDSTOSEND > 0)))) { __context__.SourceCodeLine = 88; RETURNSTRING.UpdateValue(COMMANDQUEUE [NEXTCOMMANDSEND]); __context__.SourceCodeLine = 89; COMMANDQUEUE [NEXTCOMMANDSEND].UpdateValue(""); __context__.SourceCodeLine = 90; NEXTCOMMANDSEND = (ushort)((NEXTCOMMANDSEND + 1)); __context__.SourceCodeLine = 91; if (Functions.TestForTrue((Functions.BoolToInt(NEXTCOMMANDSEND > 500)))) { __context__.SourceCodeLine = 93; NEXTCOMMANDSEND = (ushort)(1); } __context__.SourceCodeLine = 95; CALCULATECOMMANDQUEUESIZE(__context__); } __context__.SourceCodeLine = 97; return(RETURNSTRING); }
private void INITCHANGEGROUP(SplusExecutionContext __context__) { CrestronString TOSEND__DOLLAR__; TOSEND__DOLLAR__ = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 256, this); ushort I = 0; __context__.SourceCodeLine = 144; TOSEND__DOLLAR__.UpdateValue("cgc " + Functions.ItoA((int)(CHANGEGROUP_ID.Value)) + "\r\n"); __context__.SourceCodeLine = 145; SENDTOQSYS(__context__, TOSEND__DOLLAR__); __context__.SourceCodeLine = 146; ushort __FN_FORSTART_VAL__1 = (ushort)(1); ushort __FN_FOREND_VAL__1 = (ushort)NPARAMS; int __FN_FORSTEP_VAL__1 = (int)1; for (I = __FN_FORSTART_VAL__1; (__FN_FORSTEP_VAL__1 > 0) ? ((I >= __FN_FORSTART_VAL__1) && (I <= __FN_FOREND_VAL__1)) : ((I <= __FN_FORSTART_VAL__1) && (I >= __FN_FOREND_VAL__1)); I += (ushort)__FN_FORSTEP_VAL__1) { __context__.SourceCodeLine = 148; TOSEND__DOLLAR__.UpdateValue("cga " + Functions.ItoA((int)(CHANGEGROUP_ID.Value)) + " " + MUTENAMES [I] + "\r\n"); __context__.SourceCodeLine = 149; SENDTOQSYS(__context__, TOSEND__DOLLAR__); __context__.SourceCodeLine = 150; TOSEND__DOLLAR__.UpdateValue("cga " + Functions.ItoA((int)(CHANGEGROUP_ID.Value)) + " " + VOLUMENAMES [I] + "\r\n"); __context__.SourceCodeLine = 151; SENDTOQSYS(__context__, TOSEND__DOLLAR__); __context__.SourceCodeLine = 146; } }
private void PROCESSSOMFYDATA(SplusExecutionContext __context__, CrestronString PARAMDATA) { CrestronString TEMPADDRESS; TEMPADDRESS = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 3, this); ushort A = 0; __context__.SourceCodeLine = 185; TEMPADDRESS.UpdateValue(""); __context__.SourceCodeLine = 186; TEMPADDRESS.UpdateValue(Functions.Mid(PARAMDATA, (int)(4), (int)(3))); __context__.SourceCodeLine = 187; if (Functions.TestForTrue((Functions.BoolToInt(Functions.Length(TEMPADDRESS) > 0)))) { __context__.SourceCodeLine = 189; ushort __FN_FORSTART_VAL__1 = (ushort)(1); ushort __FN_FOREND_VAL__1 = (ushort)NUMBEROFMODULES; int __FN_FORSTEP_VAL__1 = (int)1; for (A = __FN_FORSTART_VAL__1; (__FN_FORSTEP_VAL__1 > 0) ? ((A >= __FN_FORSTART_VAL__1) && (A <= __FN_FOREND_VAL__1)) : ((A <= __FN_FORSTART_VAL__1) && (A >= __FN_FOREND_VAL__1)); A += (ushort)__FN_FORSTEP_VAL__1) { __context__.SourceCodeLine = 191; if (Functions.TestForTrue((Functions.BoolToInt(TEMPADDRESS == ADDRESSES[A])))) { __context__.SourceCodeLine = 193; TOMODULES [A].UpdateValue(PARAMDATA + "\u000D\u000A"); __context__.SourceCodeLine = 194; break; } __context__.SourceCodeLine = 189; } } }
private CrestronString GETNEXTQUERY(SplusExecutionContext __context__) { CrestronString RETURNSTRING; RETURNSTRING = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 25, this); __context__.SourceCodeLine = 130; RETURNSTRING.UpdateValue(""); __context__.SourceCodeLine = 131; if (Functions.TestForTrue((Functions.BoolToInt(QUERIESTOSEND > 0)))) { __context__.SourceCodeLine = 133; RETURNSTRING.UpdateValue(QUERYQUEUE [NEXTQUERYSEND]); __context__.SourceCodeLine = 134; QUERYQUEUE [NEXTQUERYSEND].UpdateValue(""); __context__.SourceCodeLine = 135; NEXTQUERYSEND = (ushort)((NEXTQUERYSEND + 1)); __context__.SourceCodeLine = 136; if (Functions.TestForTrue((Functions.BoolToInt(NEXTQUERYSEND > 500)))) { __context__.SourceCodeLine = 138; NEXTQUERYSEND = (ushort)(1); } __context__.SourceCodeLine = 140; CALCULATEQUERYQUEUESIZE(__context__); } __context__.SourceCodeLine = 142; return(RETURNSTRING); }
private void PROCESSMODULEDATA(SplusExecutionContext __context__, CrestronString PARAMDATA) { CrestronString TEMPSTARTBYTES; CrestronString TEMPADDRESS; TEMPSTARTBYTES = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 3, this); TEMPADDRESS = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 3, this); ushort TEMPNUMBER = 0; __context__.SourceCodeLine = 234; TEMPSTARTBYTES.UpdateValue(""); __context__.SourceCodeLine = 235; TEMPADDRESS.UpdateValue(""); __context__.SourceCodeLine = 236; TEMPNUMBER = (ushort)(0); __context__.SourceCodeLine = 238; if (Functions.TestForTrue((Functions.BoolToInt(Functions.Find("Send Name", PARAMDATA) > 0)))) { __context__.SourceCodeLine = 240; TEMPNUMBER = (ushort)(Functions.Atoi(PARAMDATA)); __context__.SourceCodeLine = 241; TEMPADDRESS.UpdateValue(Functions.Mid(PARAMDATA, (int)((Functions.Find("= ", PARAMDATA) + 2)), (int)(3))); __context__.SourceCodeLine = 242; if (Functions.TestForTrue((Functions.BoolToInt((Functions.TestForTrue(Functions.BoolToInt(TEMPNUMBER > 0)) && Functions.TestForTrue(Functions.BoolToInt(Functions.Length(TEMPADDRESS) > 0))))))) { __context__.SourceCodeLine = 244; ADDADDRESS(__context__, (ushort)(TEMPNUMBER), TEMPADDRESS); } else { __context__.SourceCodeLine = 248; GenerateUserNotice("Somfy ILT3: Send Name error: {0}", PARAMDATA); } } else { __context__.SourceCodeLine = 253; TEMPSTARTBYTES.UpdateValue(Functions.Left(PARAMDATA, (int)(3))); __context__.SourceCodeLine = 254; if (Functions.TestForTrue((Functions.BoolToInt(TEMPSTARTBYTES == "\u00F3\u00F4\u00FF")))) { __context__.SourceCodeLine = 256; ADDQUERYTOQUEUE(__context__, PARAMDATA); } else { __context__.SourceCodeLine = 260; ADDCOMMANDTOQUEUE(__context__, PARAMDATA); } } }
private CrestronString ITOP(SplusExecutionContext __context__, ushort ANALOGINPUT) { CrestronString TORETURN__DOLLAR__; TORETURN__DOLLAR__ = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 256, this); uint DIVIDEND = 0; uint DIVISOR = 0; uint QUOTIENT = 0; uint REMAINDER = 0; uint X = 0; __context__.SourceCodeLine = 165; TORETURN__DOLLAR__.UpdateValue(""); __context__.SourceCodeLine = 166; DIVIDEND = (uint)(ANALOGINPUT); __context__.SourceCodeLine = 167; DIVISOR = (uint)(65535); __context__.SourceCodeLine = 169; uint __FN_FORSTART_VAL__1 = (uint)(1); uint __FN_FOREND_VAL__1 = (uint)4; int __FN_FORSTEP_VAL__1 = (int)1; for (X = __FN_FORSTART_VAL__1; (__FN_FORSTEP_VAL__1 > 0) ? ((X >= __FN_FORSTART_VAL__1) && (X <= __FN_FOREND_VAL__1)) : ((X <= __FN_FORSTART_VAL__1) && (X >= __FN_FOREND_VAL__1)); X += (uint)__FN_FORSTEP_VAL__1) { __context__.SourceCodeLine = 171; QUOTIENT = (uint)((DIVIDEND / DIVISOR)); __context__.SourceCodeLine = 172; REMAINDER = (uint)(Mod(DIVIDEND, DIVISOR)); __context__.SourceCodeLine = 173; TORETURN__DOLLAR__.UpdateValue(TORETURN__DOLLAR__ + Functions.LtoA((int)(QUOTIENT))); __context__.SourceCodeLine = 175; if (Functions.TestForTrue((Functions.BoolToInt(X == 1)))) { __context__.SourceCodeLine = 176; TORETURN__DOLLAR__.UpdateValue(TORETURN__DOLLAR__ + "."); } __context__.SourceCodeLine = 179; DIVIDEND = (uint)((REMAINDER * 10)); __context__.SourceCodeLine = 169; } __context__.SourceCodeLine = 182; return(TORETURN__DOLLAR__); }
object KEYPAD_ENTER_SELECT_OnPush_1(Object __EventInfo__) { Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__; try { SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__); __context__.SourceCodeLine = 64; if (Functions.TestForTrue((Functions.BoolToInt((Functions.TestForTrue(Functions.BoolToInt(Functions.Atoi(SK_CHANNEL) > 0)) && Functions.TestForTrue(Functions.BoolToInt(Functions.Length(SK_CHANNEL) <= 7))))))) { __context__.SourceCodeLine = 66; SK_CHANNEL.UpdateValue(">" + Functions.ItoA((int)(PARAMETERIZED_UNIT_ID.UshortValue)) + "TC=" + SK_CHANNEL + "\r\n"); __context__.SourceCodeLine = 67; TO_DEVICE.UpdateValue(SK_CHANNEL); __context__.SourceCodeLine = 68; SK_CHANNEL.UpdateValue(""); __context__.SourceCodeLine = 69; CHANNEL_KEY_IN_TEXT.UpdateValue(""); __context__.SourceCodeLine = 70; CHANNEL_KEY_OUT_TEXT.UpdateValue(SK_CHANNEL); } } catch (Exception e) { ObjectCatchHandler(e); } finally { ObjectFinallyHandler(__SignalEventArg__); } return(this); }
object KEY_BACK_OnPush_2(Object __EventInfo__) { Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__; try { SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__); ushort LENGTH = 0; __context__.SourceCodeLine = 82; if (Functions.TestForTrue((Functions.BoolToInt(Functions.Length(CHANNEL__DOLLAR__) > 0)))) { __context__.SourceCodeLine = 84; Functions.ClearBuffer(TEMP__DOLLAR__); __context__.SourceCodeLine = 85; LENGTH = (ushort)(Functions.Length(CHANNEL__DOLLAR__)); __context__.SourceCodeLine = 86; CHANNEL__DOLLAR__.UpdateValue(Functions.Mid(CHANNEL__DOLLAR__, (int)(1), (int)((LENGTH - 1)))); __context__.SourceCodeLine = 87; ushort __FN_FORSTART_VAL__1 = (ushort)(1); ushort __FN_FOREND_VAL__1 = (ushort)Functions.Length(CHANNEL__DOLLAR__); int __FN_FORSTEP_VAL__1 = (int)1; for (A = __FN_FORSTART_VAL__1; (__FN_FORSTEP_VAL__1 > 0) ? ((A >= __FN_FORSTART_VAL__1) && (A <= __FN_FOREND_VAL__1)) : ((A <= __FN_FORSTART_VAL__1) && (A >= __FN_FOREND_VAL__1)); A += (ushort)__FN_FORSTEP_VAL__1) { __context__.SourceCodeLine = 89; if (Functions.TestForTrue((Functions.BoolToInt(Byte(CHANNEL__DOLLAR__, (int)(A)) == 32)))) { __context__.SourceCodeLine = 90; MakeString(TEMP__DOLLAR__, "{0}-", TEMP__DOLLAR__); } else { __context__.SourceCodeLine = 92; MakeString(TEMP__DOLLAR__, "{0}{1}", TEMP__DOLLAR__, Functions.Chr((int)(Byte(CHANNEL__DOLLAR__, (int)(A))))); } __context__.SourceCodeLine = 87; } __context__.SourceCodeLine = 94; DISPLAY_CHANNEL__DOLLAR__.UpdateValue(TEMP__DOLLAR__); } } catch (Exception e) { ObjectCatchHandler(e); } finally { ObjectFinallyHandler(__SignalEventArg__); } return(this); }
object DIRECTORY_NAME__DOLLAR___OnChange_13(Object __EventInfo__) { Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__; try { SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__); __context__.SourceCodeLine = 156; SDIRECTORYNAME.UpdateValue(DIRECTORY_NAME__DOLLAR__); } catch (Exception e) { ObjectCatchHandler(e); } finally { ObjectFinallyHandler(__SignalEventArg__); } return(this); }
object LONGITUDEOVERRIDE_OnChange_6(Object __EventInfo__) { Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__; try { SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__); __context__.SourceCodeLine = 167; LON.UpdateValue(LONGITUDEOVERRIDE); } catch (Exception e) { ObjectCatchHandler(e); } finally { ObjectFinallyHandler(__SignalEventArg__); } return(this); }
object STARTSEARCH_OnPush_0(Object __EventInfo__) { Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__; try { SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__); CrestronString SERVERIP; CrestronString PORTNUM; CrestronString DBNAME; CrestronString NAMECOLUMN; CrestronString USERNAME; CrestronString USERPASS; CrestronString NAMETOFIND; CrestronString GOTBACK; SERVERIP = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 20, this); PORTNUM = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 6, this); DBNAME = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 30, this); NAMECOLUMN = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 30, this); USERNAME = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 80, this); USERPASS = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 40, this); NAMETOFIND = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this); GOTBACK = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 1000, this); __context__.SourceCodeLine = 25; NAMETOFIND.UpdateValue(NAMETOQUERY); __context__.SourceCodeLine = 26; SERVERIP.UpdateValue(SERVERLOCATION); __context__.SourceCodeLine = 27; PORTNUM.UpdateValue(SERVERPORT); __context__.SourceCodeLine = 28; DBNAME.UpdateValue(SQL_DATABASE_NAME); __context__.SourceCodeLine = 29; NAMECOLUMN.UpdateValue(SQL_NAME_COLUMN); __context__.SourceCodeLine = 30; USERNAME.UpdateValue(SQL_USER_NAME); __context__.SourceCodeLine = 31; USERPASS.UpdateValue(SQL_USER_PASSWORD); __context__.SourceCodeLine = 33; try { __context__.SourceCodeLine = 35; GOTBACK.UpdateValue(MYSQLCONN.GetData(SERVERIP.ToString(), PORTNUM.ToString(), DBNAME.ToString(), NAMECOLUMN.ToString(), USERNAME.ToString(), USERPASS.ToString(), NAMETOFIND.ToString())); __context__.SourceCodeLine = 36; Trace("Returned Data = {0}", GOTBACK); } catch (Exception __splus_exception__) { SimplPlusException __splus_exceptionobj__ = new SimplPlusException(__splus_exception__, this); __context__.SourceCodeLine = 40; Trace("something broke"); } } catch (Exception e) { ObjectCatchHandler(e); } finally { ObjectFinallyHandler(__SignalEventArg__); } return(this); }
public override object FunctionMain(object __obj__) { try { SplusExecutionContext __context__ = SplusFunctionMainStartCode(); __context__.SourceCodeLine = 398; CONTROL_VALUE_RET.Value = (ushort)(25); __context__.SourceCodeLine = 399; WaitForInitializationComplete( ); __context__.SourceCodeLine = 400; BRXOK = (ushort)(1); __context__.SourceCodeLine = 401; SSTEP.UpdateValue("1.0"); __context__.SourceCodeLine = 402; ISTEP = (ushort)(10); __context__.SourceCodeLine = 403; IWAIT = (ushort)(0); __context__.SourceCodeLine = 404; IVOLUME = (ushort)(1000); } catch (Exception e) { ObjectCatchHandler(e); } finally { ObjectFinallyHandler(); } return(__obj__); }
object GAMMA_VALUE_OnChange_3(Object __EventInfo__) { Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__; try { SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__); CrestronString INCMD; INCMD = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 50, this); __context__.SourceCodeLine = 160; INCMD.UpdateValue(": " + ADDRESS + " " + "GABS" + Functions.ItoA((int)(GAMMA_VALUE.UshortValue)) + "\r"); __context__.SourceCodeLine = 162; _SplusNVRAM.CMD_QUE [_SplusNVRAM.GISTORE].UpdateValue(INCMD); __context__.SourceCodeLine = 164; _SplusNVRAM.GISTORE = (ushort)((_SplusNVRAM.GISTORE + 1)); __context__.SourceCodeLine = 165; if (Functions.TestForTrue((Functions.BoolToInt(_SplusNVRAM.GISTORE > 20)))) { __context__.SourceCodeLine = 167; _SplusNVRAM.GISTORE = (ushort)(1); } __context__.SourceCodeLine = 170; if (Functions.TestForTrue((Functions.BoolToInt(_SplusNVRAM.GISTORE != _SplusNVRAM.GINEXT)))) { __context__.SourceCodeLine = 172; _SplusNVRAM.GITOSEND = (ushort)(1); } } catch (Exception e) { ObjectCatchHandler(e); } finally { ObjectFinallyHandler(__SignalEventArg__); } return(this); }
object ERRORFB_OnChange_0(Object __EventInfo__) { Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__; try { SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__); CrestronString ERROR__DOLLAR__; ERROR__DOLLAR__ = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 500, this); __context__.SourceCodeLine = 18; ushort __FN_FORSTART_VAL__1 = (ushort)(1); ushort __FN_FOREND_VAL__1 = (ushort)50; int __FN_FORSTEP_VAL__1 = (int)1; for (I = __FN_FORSTART_VAL__1; (__FN_FORSTEP_VAL__1 > 0) ? ((I >= __FN_FORSTART_VAL__1) && (I <= __FN_FOREND_VAL__1)) : ((I <= __FN_FORSTART_VAL__1) && (I >= __FN_FOREND_VAL__1)); I += (ushort)__FN_FORSTEP_VAL__1) { __context__.SourceCodeLine = 20; if (Functions.TestForTrue((Functions.BoolToInt(ERRORFB[I].Value == 1)))) { __context__.SourceCodeLine = 22; ERROR__DOLLAR__.UpdateValue(ERROR__DOLLAR__ + ERRORIN__DOLLAR__ [I] + ", "); } __context__.SourceCodeLine = 18; } __context__.SourceCodeLine = 26; ERRORMESSAGE__DOLLAR__.UpdateValue(ERROR__DOLLAR__); } catch (Exception e) { ObjectCatchHandler(e); } finally { ObjectFinallyHandler(__SignalEventArg__); } return(this); }
object FILENAME_OnChange_0(Object __EventInfo__) { Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__; try { SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__); __context__.SourceCodeLine = 340; G_FILENAME.UpdateValue(FILENAME); __context__.SourceCodeLine = 341; G_TOTALFILE.UpdateValue(G_FILELOCATION + G_FILENAME); __context__.SourceCodeLine = 343; G_FILE_OK = (ushort)(1); __context__.SourceCodeLine = 345; if (Functions.TestForTrue((G_DEBUG))) { __context__.SourceCodeLine = 347; Print("g_FileName = {0}\r\n", G_FILENAME); __context__.SourceCodeLine = 348; Print("g_TotalFile = {0}\r\n", G_TOTALFILE); } } catch (Exception e) { ObjectCatchHandler(e); } finally { ObjectFinallyHandler(__SignalEventArg__); } return(this); }
object CONFIRMUSER_OnPush_1(Object __EventInfo__) { Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__; try { SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__); ushort RESULT = 0; CrestronString UNAME; CrestronString PWORD; UNAME = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 50, this); PWORD = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 50, this); __context__.SourceCodeLine = 49; UNAME.UpdateValue(CHECKNAME); __context__.SourceCodeLine = 50; PWORD.UpdateValue(CHECKPASS); __context__.SourceCodeLine = 52; RESULT = (ushort)(MYSQLCONN.UserInfo(UNAME.ToString(), PWORD.ToString())); __context__.SourceCodeLine = 53; Trace("Result is {0:d}", (short)RESULT); __context__.SourceCodeLine = 55; if (Functions.TestForTrue((Functions.BoolToInt(RESULT == 1)))) { __context__.SourceCodeLine = 56; Functions.Pulse(500, USERISCONFIRMED); } } catch (Exception e) { ObjectCatchHandler(e); } finally { ObjectFinallyHandler(__SignalEventArg__); } return(this); }
private void SENDVOL(SplusExecutionContext __context__, ushort I) { CrestronString S; S = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 3, this); __context__.SourceCodeLine = 15; S.UpdateValue(Functions.ItoA((int)(I))); __context__.SourceCodeLine = 17; { int __SPLS_TMPVAR__SWTCH_1__ = ((int)Functions.Length(S)); { if (Functions.TestForTrue((__SPLS_TMPVAR__SWTCH_1__ == (1)))) { __context__.SourceCodeLine = 19; MakeString(TX__DOLLAR__, "\u0002VOL:00{0}\u0003", S); } else if (Functions.TestForTrue((__SPLS_TMPVAR__SWTCH_1__ == (2)))) { __context__.SourceCodeLine = 22; MakeString(TX__DOLLAR__, "\u0002VOL:0{0}\u0003", S); } else if (Functions.TestForTrue((__SPLS_TMPVAR__SWTCH_1__ == (3)))) { __context__.SourceCodeLine = 25; MakeString(TX__DOLLAR__, "\u0002VOL:{0}\u0003", S); } } } }
public override object FunctionMain(object __obj__) { try { SplusExecutionContext __context__ = SplusFunctionMainStartCode(); __context__.SourceCodeLine = 332; WaitForInitializationComplete( ); __context__.SourceCodeLine = 334; FILENAME.UpdateValue(FILEPATH__DOLLAR__ + "setback_" + Functions.ItoA((int)(INSTANCEID.Value)) + ".dat"); __context__.SourceCodeLine = 338; READSETPOINTS(__context__); __context__.SourceCodeLine = 339; SETBACKENABLED.Value = (ushort)(SETBKENABLED); __context__.SourceCodeLine = 340; if (Functions.TestForTrue((SETBACKENABLED.Value))) { __context__.SourceCodeLine = 342; OLDHEAT = (ushort)(HEATSETBACK.Value); __context__.SourceCodeLine = 343; OLDCOOL = (ushort)(COOLSETBACK.Value); __context__.SourceCodeLine = 344; OLDAUTO1PT = (ushort)(AUTO1PTSETBACK.Value); } } catch (Exception e) { ObjectCatchHandler(e); } finally { ObjectFinallyHandler(); } return(__obj__); }
object SEND_WOL_OnPush_0(Object __EventInfo__) { Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__; try { SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__); CrestronString WHICH_MAC; WHICH_MAC = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 6, this); CrestronString WOLSTRING; WOLSTRING = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 255, this); __context__.SourceCodeLine = 176; WHICH_MAC.UpdateValue(MAC_ADDRESS [Functions.GetLastModifiedArrayIndex(__SignalEventArg__)]); __context__.SourceCodeLine = 177; WOLSTRING.UpdateValue(CREATEWOLSTRING(__context__, WHICH_MAC)); __context__.SourceCodeLine = 178; WOL__DOLLAR__.UpdateValue(WOLSTRING); } catch (Exception e) { ObjectCatchHandler(e); } finally { ObjectFinallyHandler(__SignalEventArg__); } return(this); }
object CONSOLE_RX__DOLLAR___OnChange_2(Object __EventInfo__) { Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__; try { SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__); CrestronString LS_RESPONSE; LS_RESPONSE = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 1500, this); __context__.SourceCodeLine = 508; while (Functions.TestForTrue((Functions.BoolToInt(Functions.Length(CONSOLE_RX__DOLLAR__) > 0)))) { __context__.SourceCodeLine = 510; LS_RESPONSE.UpdateValue(Functions.Remove("\u003E", CONSOLE_RX__DOLLAR__)); __context__.SourceCodeLine = 513; if (Functions.TestForTrue((Functions.BoolToInt(Functions.Length(LS_RESPONSE) > 0)))) { } __context__.SourceCodeLine = 518; SFPARSE(__context__, LS_RESPONSE); __context__.SourceCodeLine = 508; } } catch (Exception e) { ObjectCatchHandler(e); } finally { ObjectFinallyHandler(__SignalEventArg__); } return(this); }
object SETSTRINGVALUE_OnChange_0(Object __EventInfo__) { Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__; try { SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__); CrestronString X; X = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 255, this); __context__.SourceCodeLine = 18; if (Functions.TestForTrue((Functions.BoolToInt(SETSTRINGVALUE == "")))) { __context__.SourceCodeLine = 20; STRINGCONTROL.SetString(""); } else { __context__.SourceCodeLine = 24; while (Functions.TestForTrue((Functions.BoolToInt(X != SETSTRINGVALUE)))) { __context__.SourceCodeLine = 26; X.UpdateValue(SETSTRINGVALUE); __context__.SourceCodeLine = 27; STRINGCONTROL.SetString(X.ToString()); __context__.SourceCodeLine = 24; } } } catch (Exception e) { ObjectCatchHandler(e); } finally { ObjectFinallyHandler(__SignalEventArg__); } return(this); }
object SECURITYSERVER_OnSocketReceive_0(Object __Info__) { SocketEventInfo __SocketInfo__ = (SocketEventInfo)__Info__; try { SplusExecutionContext __context__ = SplusThreadStartCode(__SocketInfo__); short FILEHANDLE = 0; short COUNT = 0; CrestronString BUFFER; BUFFER = new CrestronString(InheritedStringEncoding, 8192, this); __context__.SourceCodeLine = 28; Functions.ClearBuffer(SECURITYSERVER.SocketRxBuf); __context__.SourceCodeLine = 30; BUFFER.UpdateValue("<?xml version=\u00221.0\u0022?>\u000A\u000D<!DOCTYPE cross-domain-policy SYSTEM \u0022/xml/dtds/cross-domain-policy.dtd\u0022>\u000A\u000D<!-- Policy file for xmlsocket://socks.example.com -->\u000A\u000D<cross-domain-policy>\u000A\u000D<!-- This is a master-policy file -->\u000A\u000D<site-control permitted-cross-domain-policies=\u0022master-only\u0022/>\u000A\u000D<!-- Instead of setting to-ports=\u0022*\u0022,administrators can use ranges and commas -->\u000A\u000D<allow-access-from domain=\u0022*\u0022 to-ports=\u0022*\u0022 />\u000A\u000D</cross-domain-policy>\u0000"); __context__.SourceCodeLine = 31; Functions.SocketSend(SECURITYSERVER, BUFFER); } catch (Exception e) { ObjectCatchHandler(e); } finally { ObjectFinallyHandler(__SocketInfo__); } return(this); }
object PROCESS_OnPush_0( Object __EventInfo__ ) { Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__; try { SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__); ushort I = 0; ushort ROOMNUMBER = 0; CrestronString TEMPNUMBERSTRING; TEMPNUMBERSTRING = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 20, this ); __context__.SourceCodeLine = 79; ushort __FN_FORSTART_VAL__1 = (ushort) ( 1 ) ; ushort __FN_FOREND_VAL__1 = (ushort)6; int __FN_FORSTEP_VAL__1 = (int)1; for ( I = __FN_FORSTART_VAL__1; (__FN_FORSTEP_VAL__1 > 0) ? ( (I >= __FN_FORSTART_VAL__1) && (I <= __FN_FOREND_VAL__1) ) : ( (I <= __FN_FORSTART_VAL__1) && (I >= __FN_FOREND_VAL__1) ) ; I += (ushort)__FN_FORSTEP_VAL__1) { __context__.SourceCodeLine = 81; CURRENTGROUP .Value = (ushort) ( I ) ; __context__.SourceCodeLine = 82; Functions.ProcessLogic ( ) ; __context__.SourceCodeLine = 84; while ( Functions.TestForTrue ( ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( 0 < Functions.Length( GROUPLISTIN[ I ] ) ) ) && Functions.TestForTrue ( Functions.BoolToInt ( 0 < Functions.Atoi( GROUPLISTIN[ I ] ) ) )) )) ) ) { __context__.SourceCodeLine = 86; if ( Functions.TestForTrue ( ( Functions.BoolToInt ( Functions.Find( "," , GROUPLISTIN[ I ] ) > 0 )) ) ) { __context__.SourceCodeLine = 88; TEMPNUMBERSTRING .UpdateValue ( Functions.Remove ( "," , GROUPLISTIN [ I ] ) ) ; __context__.SourceCodeLine = 89; ROOMNUMBER = (ushort) ( Functions.Atoi( TEMPNUMBERSTRING ) ) ; __context__.SourceCodeLine = 90; if ( Functions.TestForTrue ( ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( 0 < ROOMNUMBER ) ) && Functions.TestForTrue ( Functions.BoolToInt ( ROOMNUMBER <= 72 ) )) )) ) ) { __context__.SourceCodeLine = 91; ROOMOUT [ ROOMNUMBER] .Value = (ushort) ( 1 ) ; } } else { __context__.SourceCodeLine = 95; ROOMNUMBER = (ushort) ( Functions.Atoi( GROUPLISTIN[ I ] ) ) ; __context__.SourceCodeLine = 96; if ( Functions.TestForTrue ( ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( 0 < ROOMNUMBER ) ) && Functions.TestForTrue ( Functions.BoolToInt ( ROOMNUMBER <= 72 ) )) )) ) ) { __context__.SourceCodeLine = 97; ROOMOUT [ ROOMNUMBER] .Value = (ushort) ( 1 ) ; } __context__.SourceCodeLine = 98; break ; } __context__.SourceCodeLine = 84; } __context__.SourceCodeLine = 102; if ( Functions.TestForTrue ( ( Functions.BoolToInt ( 0 < Functions.Length( GROUPNAMESIN[ I ] ) )) ) ) { __context__.SourceCodeLine = 103; ROOMNAMEVALID .Value = (ushort) ( 1 ) ; } __context__.SourceCodeLine = 105; Functions.ProcessLogic ( ) ; __context__.SourceCodeLine = 106; RESETOUTPUTS ( __context__ ) ; __context__.SourceCodeLine = 79; } __context__.SourceCodeLine = 109; GROUPSINITIALIZED .Value = (ushort) ( 1 ) ; } catch(Exception e) { ObjectCatchHandler(e); } finally { ObjectFinallyHandler( __SignalEventArg__ ); } return this; }
private CrestronString SENDSTRING( SplusExecutionContext __context__, CrestronString STRINGSEND ) { ushort A = 0; ushort ICS = 0; CrestronString SSTRINGFINAL; SSTRINGFINAL = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 50, this ); __context__.SourceCodeLine = 136; ICS = (ushort) ( 0 ) ; __context__.SourceCodeLine = 137; ushort __FN_FORSTART_VAL__1 = (ushort) ( 1 ) ; ushort __FN_FOREND_VAL__1 = (ushort)Functions.Length( STRINGSEND ); int __FN_FORSTEP_VAL__1 = (int)1; for ( A = __FN_FORSTART_VAL__1; (__FN_FORSTEP_VAL__1 > 0) ? ( (A >= __FN_FORSTART_VAL__1) && (A <= __FN_FOREND_VAL__1) ) : ( (A <= __FN_FORSTART_VAL__1) && (A >= __FN_FOREND_VAL__1) ) ; A += (ushort)__FN_FORSTEP_VAL__1) { __context__.SourceCodeLine = 139; ICS = (ushort) ( (ICS + Byte( STRINGSEND , (int)( A ) )) ) ; __context__.SourceCodeLine = 137; } __context__.SourceCodeLine = 141; ICS = (ushort) ( (256 - ICS) ) ; __context__.SourceCodeLine = 142; SSTRINGFINAL .UpdateValue ( STRINGSEND + Functions.Chr ( (int) ( ICS ) ) ) ; __context__.SourceCodeLine = 143; return ( SSTRINGFINAL ) ; }
private CrestronString BYTETOSTRING ( SplusExecutionContext __context__, ushort CONVERT ) { CrestronString NUMBER; NUMBER = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 1, this ); __context__.SourceCodeLine = 259; NUMBER .UpdateValue ( "" ) ; __context__.SourceCodeLine = 260; switch ((int)CONVERT) { case 0 : { __context__.SourceCodeLine = 262; NUMBER .UpdateValue ( "0" ) ; __context__.SourceCodeLine = 263; break ; } goto case 1 ; case 1 : { __context__.SourceCodeLine = 266; NUMBER .UpdateValue ( "1" ) ; __context__.SourceCodeLine = 267; break ; } goto case 2 ; case 2 : { __context__.SourceCodeLine = 270; NUMBER .UpdateValue ( "2" ) ; __context__.SourceCodeLine = 271; break ; } goto case 3 ; case 3 : { __context__.SourceCodeLine = 274; NUMBER .UpdateValue ( "3" ) ; __context__.SourceCodeLine = 275; break ; } goto case 4 ; case 4 : { __context__.SourceCodeLine = 278; NUMBER .UpdateValue ( "4" ) ; __context__.SourceCodeLine = 279; break ; } goto case 5 ; case 5 : { __context__.SourceCodeLine = 282; NUMBER .UpdateValue ( "5" ) ; __context__.SourceCodeLine = 283; break ; } goto case 6 ; case 6 : { __context__.SourceCodeLine = 286; NUMBER .UpdateValue ( "6" ) ; __context__.SourceCodeLine = 287; break ; } goto case 7 ; case 7 : { __context__.SourceCodeLine = 290; NUMBER .UpdateValue ( "7" ) ; __context__.SourceCodeLine = 291; break ; } goto case 8 ; case 8 : { __context__.SourceCodeLine = 294; NUMBER .UpdateValue ( "8" ) ; __context__.SourceCodeLine = 295; break ; } goto case 9 ; case 9 : { __context__.SourceCodeLine = 298; NUMBER .UpdateValue ( "9" ) ; __context__.SourceCodeLine = 299; break ; } goto case 10 ; case 10 : { __context__.SourceCodeLine = 302; NUMBER .UpdateValue ( "#" ) ; __context__.SourceCodeLine = 303; break ; } goto case 11 ; case 11 : { __context__.SourceCodeLine = 306; NUMBER .UpdateValue ( "*" ) ; __context__.SourceCodeLine = 307; break ; } goto case 12 ; case 12 : { __context__.SourceCodeLine = 310; NUMBER .UpdateValue ( "," ) ; __context__.SourceCodeLine = 311; break ; } goto case 13 ; case 13 : { __context__.SourceCodeLine = 314; NUMBER .UpdateValue ( "+" ) ; __context__.SourceCodeLine = 315; break ; } goto case 14 ; case 14 : { __context__.SourceCodeLine = 318; NUMBER .UpdateValue ( "" ) ; __context__.SourceCodeLine = 319; break ; } goto case 15 ; case 15 : { __context__.SourceCodeLine = 322; NUMBER .UpdateValue ( "" ) ; __context__.SourceCodeLine = 323; break ; } break; } __context__.SourceCodeLine = 326; return ( NUMBER ) ; }