private void button4_Click(object sender, EventArgs e)
        {
            splitContainer1.Panel2.Controls.Clear();
            EcuTime allTrip = new EcuTime();

            allTrip.TopLevel = false;
            // allTrip.FormBorderStyle = FormBorderStyle.None;
            //  allTrip.Parent = this.splitContainer1.Panel2;
            this.splitContainer1.Panel2.Controls.Add(allTrip); //add the fs form to the panel2

            allTrip.Dock = DockStyle.Fill;
            allTrip.Show();
        }
Beispiel #2
0
        /// <summary>
        /// Get volatile value as string
        /// </summary>
        /// <param name="Position">Position of volatile value</param>
        /// <returns>Volatile value as string</returns>
        public string GetVolatileValue(UInt16 Position)
        {
            string ret = "";

            switch (Position)
            {
            case 0:
                ret = String.Format("ECU Zeit = {0} UTC", EcuTime.ToString("dd.MM.yyyy HH:mm:ss"));
                break;

            case 1:
                ret = String.Format("RTC Control = {0}", RtcControl);
                break;

            case 2:
                ret = String.Format("ECU Status = {0}", EcuStatus);
                break;

            case 3:
                ret = String.Format("letzte Reg. = {0}", LastThermRegeneration);
                break;

            case 4:
                ret = String.Format("AQ Ring Pos. = {0}", FlashAqRingPos);
                break;

            case 5:
                ret = String.Format("AQ Ring Step = {0}", FlashAqStepPos);
                break;

            case 6:
                ret = String.Format("ERR Ring Sector = {0}", FlashErrRingSector);
                break;

            case 7:
                ret = String.Format("ERR Ring Addr. = {0}", FlashErrRingAddress);
                break;

            case 8:
                ret = String.Format("Ist Konzentration = {0}", IstKonzentration);
                break;

            case 9:
                ret = String.Format("Tankinhalt = {0}", Tankinhalt);
                break;

            case 10:
                ret = String.Format("Dosierimpulse = {0}", Dosierimpulse);
                break;

            case 11:
                ret = String.Format("PowerUp Counter = {0}", PowerUpCounter);
                break;

            case 12:
                ret = String.Format("Betriebsminuten = {0}", BetriebsMinuten);
                break;

            case 13:
                ret = String.Format("Dosierimpulse Tank = {0}", DosierimpulseTank);
                break;

            case 14:
                ret = String.Format("Dosierimpulse Filter = {0}", DosierimpulseFilter);
                break;

            case 15:
                ret = String.Format("Beladungssumme = {0}", Beladungssumme);
                break;

            case 16:
                ret = String.Format("Pressure Offset = {0}", PressureOffset);
                break;

            case 17:
                ret = String.Format("Last AD Offset = {0}", LastADOffset);
                break;

            case 18:
                ret = String.Format("Load NotCfg Flag = {0}", LoadNotCfgFlag);
                break;

            case 19:
                ret = String.Format("SPI-Flash Debug Counter = {0}", SpiFlashDebug);
                break;

            case 20:
                ret = String.Format("CRC16 = {0}", Checksum);
                break;

            default:
                ret = "N/A";
                break;
            }
            return(ret);
        }