Demo entry 5911378

C#

   

Submitted by anonymous on Sep 01, 2016 at 08:14
Language: C#. Code size: 768 Bytes.

            switch (str)
            {
                case "分析模式":
                    serialPort1.WriteLine("AT+MODE=2\r");
                    this.dSkinTabControl1.SelectedTab = dSkinTabPage6;
                    ModeCount = 2;
                    if (!timer1.Enabled)
                    {
                        timer1.Start();
                    }
                    break;
                case "搜寻模式":
                    serialPort1.WriteLine("AT+MODE=1\r");
                    this.dSkinTabControl1.SelectedTab = dSkinTabPage7;
                    ModeCount = 1;
                    if (timer1.Enabled)
                        timer1.Stop();
                    break;
                default:
                    break;
            }

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).