Esempio n. 1
0
 //============================================================
 // <T>解析字符串。</T>
 //
 // @param value 字符串
 //============================================================
 public bool Parse(string value)
 {
     if (null != value)
     {
         string[] items = value.Split(',');
         if (3 == items.Length)
         {
             _color = ColorTranslator.FromHtml(items[0]);
             _width = RInt.Parse(items[1]);
             _style = RUiLineStyle.Parse(items[2]);
         }
     }
     return(false);
 }
Esempio n. 2
0
 //============================================================
 // <T>加载配置信息。</T>
 //
 // @param xconfig 配置节点
 // @param name 名称
 //============================================================
 public void LoadConfig(FXmlNode xconfig, string name)
 {
     if (xconfig.Contains(name + "_color"))
     {
         _color = ColorTranslator.FromHtml(xconfig.Get(name + "_color"));
     }
     if (xconfig.Contains(name + "_width"))
     {
         _width = RInt.Parse(xconfig.Get(name + "_width"));
     }
     if (xconfig.Contains(name + "_style_cd"))
     {
         _style = RUiLineStyle.Parse(xconfig.Get(name + "_style_cd"));
     }
 }
Esempio n. 3
0
 public FUiLine(Color color, int width, EUiLineStyle style)
 {
     _color = color;
     _width = width;
     _style = style;
 }