示例#1
0
 public Resource(string text, TextStyle style, Color color)
 {
     _hashString         = "T:" + text + ";" + style.ToString() + ";" + GetColorString(color);
     _name               = _hashString;
     _addResourceCommand = new Commands.ResourceAddText(text, style, color);
 }
示例#2
0
 public Resource(TextStyle textStyle)
 {
     _name               = textStyle.ToString();
     _hashString         = "F:" + _name;
     _addResourceCommand = new Commands.ResourceAddFont(textStyle);
 }