diff --git a/PROMS/VEPROMS.CSLA.Library/Config/DocumentConfig.cs b/PROMS/VEPROMS.CSLA.Library/Config/DocumentConfig.cs index 5413a10f..6ed3f58b 100644 --- a/PROMS/VEPROMS.CSLA.Library/Config/DocumentConfig.cs +++ b/PROMS/VEPROMS.CSLA.Library/Config/DocumentConfig.cs @@ -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 } -} \ No newline at end of file +}