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; }
public ContentRuleDTO GetContentRule(string key) { if (key == null) { return(null); } ContentRuleDTO dto = null; _contentRules.Data.TryGetValue(key, out dto); return(dto); }
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; }
private bool FillContentRule () { if (_contentRule == null) _contentRule = _serverDTO.Connection.SchemaManager.GetContentRule (_currentObject); return _contentRule != null; }