Exemple #1
0
        /// <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;
            }
        }
Exemple #2
0
 /// <summary>
 /// Copy Constructor.
 /// </summary>
 /// <param name="colourFormat"></param>
 public ColourFormat(ColourFormat colourFormat) :
     this(colourFormat.Red, colourFormat.Green, colourFormat.Blue, colourFormat.Alpha)
 {
 }