예제 #1
0
        public bool DocumentUploaded(string key, bool value)
        {
            if (OrganizationDocument != null && OrganizationDocument.ContainsKey(key))
            {
                return(OrganizationDocument[key] == value);
            }

            return(false);
        }
예제 #2
0
        private void ReadDocuments(XElement e)
        {
            if (OrganizationDocument == null)
            {
                OrganizationDocument = new Dictionary <string, bool?>();
            }
            var doc = e.Attribute("documentName");

            if (doc != null)
            {
                OrganizationDocument.Add(doc.Value, e.Value.ToBool());
            }
        }