private void ParseXML(XmlDocument configXml) { if (configXml.ChildNodes.Count > 2) { return; } XmlNode config = configXml.ChildNodes[1]; if (config != null) { foreach (XmlNode node in config.ChildNodes) { if (node.Name.ToLower().Equals("global")) { this.Collection = new _Collection(node); } else if (node.Name.ToLower().Equals("collectors")) { foreach (XmlNode collectorsNode in node.ChildNodes) { if (collectorsNode.Name.ToLower().Equals("collector")) { this.Add(new Collector(collectorsNode)); } } } } } }
internal static _Collection GetObject(MfsOperations parent) { if (_theObject == null) { _theObject = new _Collection (parent); } return _theObject; }
public void Dispose() { _theObject = null; }
set => SetEditableProperty(v => _Collection = v, _Collection, value);
private void LoadSubobjects() { FileObj = _File.GetObject (this); DocumentObj = _Document.GetObject (this); AspectObj = _Aspect.GetObject (this); AspectGroupObj = _AspectGroup.GetObject (this); BriefcaseObj = _Briefcase.GetObject (this); CollectionObj = _Collection.GetObject (this); NoteObj = _Note.GetObject (this); UrlObj = _Url.GetObject (this); VCardObj = _VCard.GetObject (this); SfdObj = _Sfd.GetObject (this); RelationObj = _Relation.GetObject (this); ArchiveObj = _Archive.GetObject (this); BookmarkObj = _Bookmark.GetObject (this); IndexObj = _Index.GetObject (this); MasterPasswordObj = _MasterPassword.GetObject (this); CredentialsObj = _Credentials.GetObject (this); }
get => _Converter(_Collection[index]); set => throw NotSupported();