Пример #1
0
 void FillPnl()
 {
     try
     {
         x = 0; y = 0;
         //   PnlDemand.Controls.Clear();
         foreach (XmlNode node in xml.GetXml().SelectSingleNode("CONTROLS//" + CBoxType.Text).ChildNodes)
         {
             AddComBox(xml.DelF(node.Name));
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
Пример #2
0
 private void CboxDel_DropDown(object sender, EventArgs e)
 {
     CboxDel.Items.Clear();
     foreach (XmlNode node in xml.GetXml().SelectSingleNode("CONTROLS//" + Type).ChildNodes)
     {
         CboxDel.Items.Add(xml.DelF(node.Name));
     }
 }
Пример #3
0
 public void UpDateData()
 {
     TvwEquation.Nodes.Clear();
     try
     {
         XmlNodeList List = xml.GetXml().SelectSingleNode("DOOR").ChildNodes;
         foreach (XmlNode XmlNode1 in List)
         {
             TreeNode TvwNode1 = TvwEquation.Nodes.Add(XmlNode1.Name);
             TvwNode1.ImageIndex = 0;
             foreach (XmlNode XmlNode2 in XmlNode1.ChildNodes)
             {
                 TvwNode1.Nodes.Add(xml.DelF(XmlNode2.Name)).ImageIndex = 1;
             }
         }
     }
     catch
     {
         return;
     }
 }