private void LoadDBString()
 {
     try
     {
         cbEEPAlias.Items.Clear();
         FAlias = new TStringList();
         List<string> list1 = new List<string>();
         string text3 = SystemFile.DBFile;
         XmlDocument document1 = new XmlDocument();
         document1.Load(text3);
         foreach (XmlNode node1 in document1.FirstChild.FirstChild.ChildNodes)
         {
             list1.Add((string)node1.Name);
             cbEEPAlias.Items.Add(node1.Name);
             string text1 = node1.Attributes["String"].Value.Trim();
             string text2 = WzdUtils.GetPwdString(node1.Attributes["Password"].Value.Trim());
             if ((text1.Length > 0) && (text2.Length > 0) && text2 != String.Empty)
             {
                 if (text1[text1.Length - 1] != ';')
                 {
                     text1 = text1 + ";Password="******"Password="******"Please setup <DB Manager> of EEPNetServer at first !");
     }
 }
Exemple #2
0
 private void LoadDBString()
 {
     cbEEPAlias.Items.Clear();
     FAlias = new TStringList();
     List<string> list1 = new List<string>();
     string text3 = SystemFile.DBFile;
     XmlDocument document1 = new XmlDocument();
     document1.Load(text3);
     foreach (XmlNode node1 in document1.FirstChild.FirstChild.ChildNodes)
     {
         list1.Add((string)node1.Name);
         cbEEPAlias.Items.Add(node1.Name);
         FServerData.DatabaseType = (ClientType)int.Parse(node1.Attributes["Type"].Value);
         string text1 = node1.Attributes["String"].Value.Trim();
         string text2 = WzdUtils.GetPwdString(node1.Attributes["Password"].Value.Trim());
         if ((text1.Length > 0) && (text2.Length > 0) && text2 != String.Empty)
         {
             if (text1[text1.Length - 1] != ';')
             {
                 text1 = text1 + ";Password="******"Password=" + text2;
             }
         }
         FAlias.AddObject(node1.Name, text1);
     }
 }