Exemple #1
0
        public override void GetXColumns(CustomColumnRequest request)
        {
            var columns = request.Results.Cast <GroupInfoBase>();

            columns.Add("Colour", z => ColourHelper.ColourToName(z.Colour), z => z.Colour);
            columns.Add("Light colour", z => ColourHelper.ColourToName(z.ColourLight), z => z.ColourLight);
            columns.Add("Graph icon", z => z.GraphIcon, z => z.Colour);
        }
Exemple #2
0
        protected void SetCaption(string format, params Associational[] namableItems)
        {
            if (this._captionBar != null)
            {
                format = format.Replace("{HIGHLIGHTED}", "highlighted in " + ColourHelper.ColourToName(this._core.Options.Colours.NotableHighlight).ToLower());

                this._captionBar.SetText(format, namableItems);
            }
        }
Exemple #3
0
        /// <summary>
        /// IMPLEMENTS IVisualisable.
        /// </summary>
        public override void GetXColumns(CustomColumnRequest request)
        {
            var result = request.Results.Cast <UserFlag>();

            result.Add("Colour", EColumn.None, z => ColourHelper.ColourToName(z.Colour), z => z.Colour);
        }
Exemple #4
0
 /// <summary>
 /// Updates the fixed properties of the colour editor.
 /// </summary>
 private void UpdateAppearance()
 {
     base.ForeColor = ColourHelper.ComplementaryColour(base.BackColor);
     base.Text      = ColourHelper.ColourToName(base.BackColor, true);
     base.Size      = new Size(128, 29);
 }