private void tbtnAddLine_Click(object sender, EventArgs e)
        {
            cm.newnode = null;


            frmLineSet fc = new frmLineSet("l" + Convert.ToString(cm.getGenid()), ref cm);

            fc.ShowDialog();

            if (cm.newnode != null)
            {
                foreach (TreeNode tn in trvTemperture.Nodes)
                {
                    if (tn.Name == "element")
                    {
                        cm.newnode.ImageIndex         = 6;
                        cm.newnode.SelectedImageIndex = 6;
                        tn.Nodes.Add((TreeNode)cm.newnode.Clone());
                        refleshioc();
                    }
                }
                cm.UpdateXml(0, cm.newnode, cm.XmlDoc, trvTemperture);
                picTemperatureShow.Refresh();
            }
        }
        private void 画线ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            cm.newnode = null;
            frmLineSet fc = new frmLineSet("l" + Convert.ToString(cm.getGenid()), ref cm);

            fc.ShowDialog();

            if (cm.newnode != null)
            {
                trvTemperture.SelectedNode.Nodes.Add((TreeNode)cm.newnode.Clone());
                cm.UpdateXml(0, cm.newnode, cm.XmlDoc, trvTemperture);
                picTemperatureShow.Refresh();
            }
        }