Ejemplo n.º 1
0
        public Flash(IDictionary carSelected, HexS19 s19)
        {
            this.carSelected = carSelected;
            flashProcess     = (IDictionary)ConfigurationManager.GetSection("FlashConfig/Process");
            sequence         = (IDictionary)ConfigurationManager.GetSection("FlashConfig/" + carSelected["FlashSequence"].ToString());

            physicalID = Convert.ToUInt32(carSelected["PhysicalID"].ToString(), 16);
            functionID = Convert.ToUInt32(carSelected["FunctionID"].ToString(), 16);
            receiveID  = Convert.ToUInt32(carSelected["ReceiveID"].ToString(), 16);

            securityAccess = CanControl.canStringToByte(carSelected["SecurityAccess"].ToString());

            sec      = new Security(securityAccess[2]);
            canCtl   = CanControl.getCanControl();
            this.s19 = s19;
        }
Ejemplo n.º 2
0
        public Flash(IDictionary carSelected, HexS19 s19)
        {
            this.carSelected = carSelected;
            flashProcess = (IDictionary)ConfigurationManager.GetSection("FlashConfig/Process");
            sequence = (IDictionary)ConfigurationManager.GetSection("FlashConfig/" + carSelected["FlashSequence"].ToString());

            physicalID = Convert.ToUInt32(carSelected["PhysicalID"].ToString(), 16);
            functionID = Convert.ToUInt32(carSelected["FunctionID"].ToString(), 16);
            receiveID = Convert.ToUInt32(carSelected["ReceiveID"].ToString(), 16);

            securityAccess = CanControl.canStringToByte(carSelected["SecurityAccess"].ToString());

            sec = new Security(securityAccess[2]);
            canCtl = CanControl.getCanControl();
            this.s19 = s19;
        }