public void ScanForProfiles() { foreach (XmlNode aNode in DataNode.ChildNodes) { if (aNode.Name.ToUpper() == CEmailProfile.XML_SMPTPROFILE.ToUpper()) { CEmailProfile lProfile = new CEmailProfile(this, aNode); if (IndexOf(lProfile) < 0) this.AddProfile(lProfile); } } }
public CEmailProfile CreateNewProfile(string aProfileName, string aSMTP_Server) { string lNewId = CXmlSettingsNode.ValidateNewID(aSMTP_Server, DataNode); CEmailProfile lResult = new CEmailProfile(this, lNewId, true); lResult.ProfileName = aProfileName; lResult.SMTPServer = aSMTP_Server; lResult.SMTPPort = DEFAULT_PORT.ToString(); lResult.SenderName = ""; lResult.SenderMail = ""; this._Profiles.Add(lResult); return lResult; }
public int IndexOf(CEmailProfile aProfile) { return IndexOf(aProfile.NodeID); }
public void AddProfile(CEmailProfile aProfile) { if (IndexOf(aProfile) < 0) _Profiles.Add(aProfile); }