private void _CreateDrawRuleDictionary(string id) { LibraryDrawRule drawRule = _librarian.DrawRule(id); if (drawRule != null) { _drawRule.Add("Name", drawRule.ID); _drawRule.Add("AnchorPoints", drawRule.AnchorPoints); _drawRule.Add("SizeShape", drawRule.SizeShape); _drawRule.Add("Orientation", drawRule.Orientation); } else { logger.Error("Draw rule " + id + "could not be found."); } }
internal LibraryDrawRule DrawRule(string id) { LibraryDrawRule retObj = null; foreach (LibraryDrawRule lObj in this._library.DrawRules) { if (lObj.ID == id) { return(lObj); } } logger.Warn("DrawRule " + id + " was not found in the base library file."); return(retObj); }