private void loadServers() { log = Serializ.DeSerialize(FilePath); if (log != null && log.Count > 0) { treeView1.Nodes.Clear(); foreach (Login l in log) { TreeNode node = treeView1.Nodes.Add(l.ServerName); List <string> dbs = GetDatabaseList(l.ServerName, l.Username, l.Password); foreach (string s in dbs) { TreeNode child = node.Nodes.Add(s); //if (s.ToLower().Contains("perla")) //{ // child.ForeColor = Color.Red; //} } } } }
private void FrmAddLogins_Load(object sender, EventArgs e) { List <Login> mm = Serializ.DeSerialize(FilePath); if (mm != null) { logins = mm; } foreach (Login l in logins) { radListControl1.Items.Add(l.ServerName); } }