Beispiel #1
0
        private void Ethernet_1_Click(object sender, EventArgs e)
        {
            pictest pic = (pictest)sender;

            if (userBase_.ethDic.ContainsKey(pic.Tag.ToString()))
            {
                var eth = userBase_.ethDic[pic.Tag.ToString()];
                split.Panel2.Controls.Clear();
                eth.Dock = DockStyle.Fill;
                split.Panel2.Controls.Add(eth);
            }

            //从配置文件读取的值
            myDelegate(pic.Tag.ToString(), "ETHERNET");
        }
Beispiel #2
0
        private void Serial_Line_2_Click(object sender, EventArgs e)
        {
            pictest pic = (pictest)sender;

            if (userBase_.comDic.ContainsKey(pic.Tag.ToString()))
            {
                var com = userBase_.comDic[pic.Tag.ToString()];
                if (!split.Panel2.Controls.Contains(com))
                {
                    split.Panel2.Controls.Clear();
                    com.Dock = DockStyle.Fill;
                    split.Panel2.Controls.Add(com);
                }

                //从配置文件读取的值
                myDelegate(pic.Tag.ToString(), "SERIAL_LINE");
            }
        }