public void setMembers(Members members) { this.members = members; for (int i = 0; i < 10; i++) { labels[i].Text = members.member[i].title; if (members.member[i].title.Trim().Equals("")) { ud[i].Hide(); } else { ud[i].Show(); } ud[i].Value = members.member[i].member; } }
private void loadConfig() { NameValueCollection appConfig = ConfigurationManager.AppSettings; members = new Members(); members.load(); }