This commit is contained in:
parent
2aa7156813
commit
d25bbe903a
@ -95,7 +95,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
if (sColor[0] == '[')
|
if (sColor[0] == '[')
|
||||||
{
|
{
|
||||||
string[] parts = sColor.Substring(1, sColor.Length - 2).Split(",".ToCharArray());
|
string[] parts = sColor.Substring(1, sColor.Length - 2).Split(",".ToCharArray());
|
||||||
return Color.FromArgb(Int32.Parse(parts[0]), Int32.Parse(parts[1]), Int32.Parse(parts[2]));
|
return Color.FromArgb(Int32.Parse(parts[0]), Int32.Parse(parts[1]), Int32.Parse(parts[2]), Int32.Parse(parts[3]));
|
||||||
}
|
}
|
||||||
else return Color.FromName(sColor);
|
else return Color.FromName(sColor);
|
||||||
}
|
}
|
||||||
@ -104,7 +104,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
if (value.IsNamedColor) _Xp["Printing", "Color"] = value.Name;
|
if (value.IsNamedColor) _Xp["Printing", "Color"] = value.Name;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_Xp["Printing", "Color"] = string.Format("[{0},{1},{2}]", value.R, value.G, value.B);
|
_Xp["Printing", "Color"] = string.Format("[{0},{1},{2},{3}]", value.A, value.R, value.G, value.B);
|
||||||
}
|
}
|
||||||
OnPropertyChanged("Printing_Color");
|
OnPropertyChanged("Printing_Color");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user