public void Copy(UIStyle style) { var dic = this.meta.GetDictionary(); var em = style.meta.GetDictionary().GetEnumerator(); while (em.MoveNext()) { dic[em.Key] = em.Value; } }
public UIStyle Name(String key) { if (meta.ContainsKey(key)) { var obj = meta.GetDictionary()[key]; if (obj is UIStyle) { return((UIStyle)obj); } } var style = new UIStyle(); meta.Put(key, style); return(style); }
public UIEventText Style(UIStyle style) { _style.Copy(style); return(this); }
public UISection Add(String type, WebMeta value, WebMeta format, UIStyle style) { data.Add(new WebMeta().Put("_CellName", type).Put("value", value).Put("format", format).Put("style", style)); return(this); }
public UIStyle Name(String key, UIStyle style) { meta.Put(key, style); return(this); }
public UIHeader Desc(WebMeta data, String format, UIStyle style) { this.meta.Put("type", "Desc").Put("style", style).Put("format", new WebMeta().Put("desc", format)).Put("data", data); return(this); }
public UIEventText Style(UIStyle style) { meta.Put("style", style); return(this); }
public UISection AddIcon(UIStyle style, params UIEventText[] icons) { data.Add(new WebMeta().Put("_CellName", "Icons").Put("value", new WebMeta().Put("icons", icons)).Put("style", style)); return(this); }
public UISection AddItems(UIStyle style, params UIItem[] items) { data.Add(new WebMeta().Put("_CellName", "UIItems").Put("value", new WebMeta().Put("items", items)).Put("style", style)); return(this); }
public UISection AddPro(UIStyle style, params UIPrice[] pros) { data.Add(new WebMeta().Put("_CellName", "Products").Put("value", new WebMeta().Put("data", pros)).Put("style", style)); return(this); }
public UIItem Style(UIStyle style) { meta.Put("style", style); return(this); }
public UIView Add(string text, UIStyle style) { items.Add(new WebMeta().Put("format", text).Put("style", style)); return(this); }
public UIView Add(UIClick click, Uri src, UIStyle style) { items.Add(new WebMeta().Put("src", src).Put("style", style).Put("click", click)); return(this); }
public UIView Add(string key, Uri src, UIStyle style) { items.Add(new WebMeta().Put("src", src).Put("style", style).Put("key", key)); return(this); }
public UIView Add(Uri src, UIStyle style) { items.Add(new WebMeta().Put("src", src).Put("style", style)); return(this); }