/// <summary> /// Copy & Modify Constructor. /// </summary> /// <param name="colourFormat"></param> /// <param name="fieldName"></param> /// <param name="value"></param> public ColourFormat(ColourFormat colourFormat, string fieldName, int value) : this(colourFormat) { switch (fieldName) { case DisplayNames.Red: Red = value; break; case DisplayNames.Green: Green = value; break; case DisplayNames.Blue: Blue = value; break; case DisplayNames.Alpha: Alpha = value; break; } }
/// <summary> /// Copy Constructor. /// </summary> /// <param name="colourFormat"></param> public ColourFormat(ColourFormat colourFormat) : this(colourFormat.Red, colourFormat.Green, colourFormat.Blue, colourFormat.Alpha) { }