public void Verify(EmergencyOne def)
 {
     if (this.name[0] != 255)
     {
         if (!Enum.IsDefined(typeof(AlarmType), this.alarmType))
         {
             this.alarmType = def.alarmType;
         }
         if (!Enum.IsDefined(typeof(AlarmMode), this.alarmMode))
         {
             this.alarmMode = def.alarmMode;
         }
         if (!Enum.IsDefined(typeof(RevertChE), (int)this.revertCh))
         {
             int index = this.revertCh - 2;
             if (!ChannelForm.data.DataIsValid(index))
             {
                 this.revertCh = 0;
             }
         }
         Class15.smethod_11(ref this.impoliteRetries, (byte)1, (byte)15, def.impoliteRetries);
         Class15.smethod_11(ref this.politeRetries, (byte)0, (byte)15, def.politeRetries);
         Class15.smethod_11(ref this.cycles, (byte)1, (byte)10, def.cycles);
         Class15.smethod_11(ref this.txCycle, (byte)1, (byte)12, def.txCycle);
         Class15.smethod_11(ref this.rxCycle, (byte)1, (byte)12, def.rxCycle);
     }
 }
Exemplo n.º 2
0
 public void Verify(ContactOne def)
 {
     if (!Enum.IsDefined(typeof(CallTypeE), this.callType))
     {
         this.callType = def.callType;
     }
     Class15.smethod_11(ref this.callRxTone, (byte)0, (byte)1, def.callRxTone);
     Class15.smethod_11(ref this.ringStyle, (byte)0, (byte)10, def.ringStyle);
 }
Exemplo n.º 3
0
 public void Verify(SideKey def)
 {
     Class15.smethod_11(ref this.emgShortDur, (byte)1, (byte)15, def.emgShortDur);
     Class15.smethod_11(ref this.longDur, (byte)4, (byte)15, def.longDur);
     this.ShortKeyIsValid(ref this.sk1Short, ref this.sk1Long, def.sk1Short);
     this.LongKeyIsValid(ref this.sk1Long, ref this.sk1Short, def.sk1Long);
     this.ShortKeyIsValid(ref this.sk2Short, ref this.sk2Long, def.sk2Short);
     this.LongKeyIsValid(ref this.sk2Long, ref this.sk2Short, def.sk2Long);
     this.ShortKeyIsValid(ref this.tkShort, ref this.tkLong, def.tkShort);
     this.LongKeyIsValid(ref this.tkLong, ref this.tkShort, def.tkLong);
 }
Exemplo n.º 4
0
            public void Verify(SignalingBasic def)
            {
                Class15.smethod_11(ref this.rmDuration, (byte)1, (byte)12, def.rmDuration);
                Class15.smethod_11(ref this.txSyncWakeTot, (byte)5, (byte)15, def.txSyncWakeTot);
                Class15.smethod_11(ref this.selCallHang, (byte)0, (byte)14, def.selCallHang);
                Class15.smethod_11(ref this.autoResetTimer, (byte)1, (byte)255, def.autoResetTimer);
                byte b = Convert.ToByte((this.flag1 & 0x1C) >> 2);

                if (b >= 0 && b <= 4)
                {
                    return;
                }
                this.flag1 &= 227;
                this.flag1 |= (byte)(def.flag1 & 0x1C);
            }
Exemplo n.º 5
0
 public void Verify(ScanBasic def)
 {
     Class15.smethod_11(ref this.digitHang, (byte)1, (byte)20, def.digitHang);
     Class15.smethod_11(ref this.analogHang, (byte)0, (byte)20, def.analogHang);
 }
 public void Verify(BootItem def)
 {
     Class15.smethod_11(ref this.bootScreen, BootItemForm.MIN_BOOT_SCREEN, BootItemForm.MAX_BOOT_SCREEN, def.bootScreen);
     Class15.smethod_11(ref this.bootPwdEnable, (byte)0, (byte)1, def.bootPwdEnable);
 }