コード例 #1
0
        private void AddContentRule (Dictionary<string, object> dict)
        {
            string name = dict ["NAME"] as string;

            var dto = new ContentRuleDTO { Name = name };
            dto.Aux = dict ["AUX"] as List<string>;
            dto.Must = dict ["MUST"] as List<string>;
            dto.May = dict ["MAY"] as List<string>;
            _data [name] = dto;
        }
コード例 #2
0
        public ContentRuleDTO GetContentRule(string key)
        {
            if (key == null)
            {
                return(null);
            }
            ContentRuleDTO dto = null;

            _contentRules.Data.TryGetValue(key, out dto);
            return(dto);
        }
コード例 #3
0
        private void AddContentRule(Dictionary <string, object> dict)
        {
            string name = dict ["NAME"] as string;

            var dto = new ContentRuleDTO {
                Name = name
            };

            dto.Aux      = dict ["AUX"] as List <string>;
            dto.Must     = dict ["MUST"] as List <string>;
            dto.May      = dict ["MAY"] as List <string>;
            _data [name] = dto;
        }
コード例 #4
0
 private bool FillContentRule ()
 {
     if (_contentRule == null)
         _contentRule = _serverDTO.Connection.SchemaManager.GetContentRule (_currentObject);
     return _contentRule != null;
 }