Beispiel #1
0
        public GetProductDump( )
        {
            SerialComm.Packet_t packet = new SerialComm.Packet_t();
            lastResponse = new ProcDump_t( );
            this.Click  += new EventHandler(OnButtonClick);

            this.Text              = "Get Product Dump";
            this.toolTip           = "Get Product Dump";
            packet.destination     = (byte)ModuleId_t.Touch_e;
            packet.source          = (byte)ModuleId_t.Api_e;
            packet.appPort         = SerialComm.ApplicationPort_t.Api_e;
            packet.type            = SerialComm.PacketType_t.Request_e;
            packet.message.command = (byte)API_Command_t.GetProductDump_e;
            this.packet            = packet;
            this.processResponse   = true;
            this.showResponseForm  = true;
        }
Beispiel #2
0
        public override void responseReceived(SerialComm.Packet_t p)
        {
            if (form == null || formWasClosed == true)
            {
                formWasClosed     = false;
                form              = new ProductDumpForm(this);
                form.FormClosing += new FormClosingEventHandler(form_FormClosing);
                if (showResponseForm == true)
                {
                    form.WindowState = FormWindowState.Normal;
                    form.Show();
                }
            }
            if (showResponseForm == true)
            {
                //form.WindowState = FormWindowState.Normal;
                //form.TopMost = true;
                form.Show();
                //counter++;
            }

            lastResponse = form.updateStatus(p);
            form.updateStatus(p);
        }