This commit is contained in:
		@@ -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");
 | 
			
		||||
			}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user