コード例 #1
0
        public void Copy(UIStyle style)
        {
            var dic = this.meta.GetDictionary();

            var em = style.meta.GetDictionary().GetEnumerator();

            while (em.MoveNext())
            {
                dic[em.Key] = em.Value;
            }
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        public UIEventText Style(UIStyle style)
        {
            _style.Copy(style);

            return(this);
        }
コード例 #4
0
ファイル: UISection.cs プロジェクト: wushunming/UMC.Data
 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);
 }
コード例 #5
0
 public UIStyle Name(String key, UIStyle style)
 {
     meta.Put(key, style);
     return(this);
 }
コード例 #6
0
 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);
 }
コード例 #7
0
 public UIEventText Style(UIStyle style)
 {
     meta.Put("style", style);
     return(this);
 }
コード例 #8
0
 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);
 }
コード例 #9
0
 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);
 }
コード例 #10
0
 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);
 }
コード例 #11
0
 public UIItem Style(UIStyle style)
 {
     meta.Put("style", style);
     return(this);
 }
コード例 #12
0
 public UIView Add(string text, UIStyle style)
 {
     items.Add(new WebMeta().Put("format", text).Put("style", style));
     return(this);
 }
コード例 #13
0
 public UIView Add(UIClick click, Uri src, UIStyle style)
 {
     items.Add(new WebMeta().Put("src", src).Put("style", style).Put("click", click));
     return(this);
 }
コード例 #14
0
 public UIView Add(string key, Uri src, UIStyle style)
 {
     items.Add(new WebMeta().Put("src", src).Put("style", style).Put("key", key));
     return(this);
 }
コード例 #15
0
 public UIView Add(Uri src, UIStyle style)
 {
     items.Add(new WebMeta().Put("src", src).Put("style", style));
     return(this);
 }