This commit is contained in:
John Jenko 2010-07-23 20:08:30 +00:00
parent 2aa7156813
commit d25bbe903a

View File

@ -95,7 +95,7 @@ namespace VEPROMS.CSLA.Library
if (sColor[0] == '[')
{
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);
}
@ -104,7 +104,7 @@ namespace VEPROMS.CSLA.Library
if (value.IsNamedColor) _Xp["Printing", "Color"] = value.Name;
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");
}
@ -119,4 +119,4 @@ namespace VEPROMS.CSLA.Library
}
#endregion
}
}
}