Beispiel #1
0
        /// <summary>
        /// Instantiates a new New Module.
        /// </summary>
        public NewModule() : base()
        {
#if VERBOSEDEBUG
            Console.Writeline("Newmodule()");
#endif
            Type            = ICCConstants.BICCP_GRP_NEW;
            TypeDescription = ICCConstants.GetTypeDescription((byte)Type);
        }
Beispiel #2
0
        /// <summary>
        /// Instantiates a new Traction Module.
        /// </summary>
        public TractionModule() : base()
        {
#if VERBOSEDEBUG
            Console.Writeline("TractionModule()");
#endif
            Type            = ICCConstants.BICCP_GRP_TRACTION;
            TypeDescription = ICCConstants.GetTypeDescription((byte)Type);
        }
Beispiel #3
0
        /// <summary>
        /// Instantiates a new Lighting Module.
        /// </summary>
        public LightingModule() : base()
        {
#if VERBOSEDEBUG
            Console.Writeline("LightingModule()");
#endif
            Type            = ICCConstants.BICCP_GRP_LIGHTING;
            TypeDescription = ICCConstants.GetTypeDescription((byte)Type);
        }
        /// <summary>
        /// Instantiates a new General Purpose Module.
        /// </summary>
        public GenPurpModule() : base()
        {
#if VERBOSEDEBUG
            Console.Writeline("GenPurpModule()");
#endif
            Type            = ICCConstants.BICCP_GRP_GENPURP;
            TypeDescription = ICCConstants.GetTypeDescription((byte)Type);
            Outputs         = new bool[16];
        }
        private void RefreshTable()
        {
            litTitle.Text = string.Format("0x{0:X2} ({1}): {2}", _module.ID, ICCConstants.GetTypeDescription((byte)_module.Type), _module.Description);

            _status = _m.GET_STATUS(_bAddress);

            rpt.DataSource = new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
            rpt.DataBind();
        }