示例#1
0
 public ScriptStyle(string name, Color fore, Color back, Font font)
 {
     Name = name;
     ForegroundColor = ColorSerializetionHelper.Serialize(fore);
       BackgroundColor = ColorSerializetionHelper.Serialize(back);
       FontProperties = FontSerializetionHelper.Serialize(font);
 }
示例#2
0
 public static Color Deserialize(ColorProperties value)
 {
     return(Color.FromArgb(value.Alpha, value.Red, value.Green, value.Blue));
 }
示例#3
0
 public static Color Deserialize(ColorProperties value)
 {
     return Color.FromArgb(value.Alpha, value.Red, value.Green, value.Blue);
 }