public UI AddRule(UIEllement ellement) { if (this._handlers.ContainsKey (ellement.Name)) { this._handlers [ellement.Name] = ellement; } else { this._handlers.Add (ellement.Name, ellement); } return this; }
public UI AddRule(UIEllement ellement) { if (this._handlers.ContainsKey(ellement.Name)) { this._handlers [ellement.Name] = ellement; } else { this._handlers.Add(ellement.Name, ellement); } return(this); }
public List<UIEllement> Build () { List<UIEllement> r = new List<UIEllement> (); foreach (KeyValuePair<string,List<string>> config in this.elements) { UIEllement ellement = new UIEllement (config.Key); foreach (string property in config.Value) { if (this.propertyBuilderConfig.ContainsKey (property)) { ellement.Builder += this.propertyBuilderConfig [property]; } } r.Add (ellement); } return r; }
public List <UIEllement> Build() { List <UIEllement> r = new List <UIEllement> (); foreach (KeyValuePair <string, List <string> > config in this.elements) { UIEllement ellement = new UIEllement(config.Key); foreach (string property in config.Value) { if (this.propertyBuilderConfig.ContainsKey(property)) { ellement.Builder += this.propertyBuilderConfig [property]; } } r.Add(ellement); } return(r); }