예제 #1
0
        public void SetCutSkewColor(DataGridViewCellFormattingEventArgs args, IServiceSettings settings)
        {
            GreigeRoll roll = this.carpetProcessor.PatternRepeatLogic.CurrentRoll;

            (args.CellStyle.ForeColor, args.CellStyle.BackColor) =
                CellColor.GetSkewColor(roll.BackingCode, (double)args.Value, this.serviceSettings);
        }
예제 #2
0
        public void SetSkewColor(DataGridViewCellFormattingEventArgs args, IServiceSettings settings)
        {
            GreigeRoll roll = (GreigeRoll)this.grdGreigeRoll.Rows[args.RowIndex].DataBoundItem;

            (args.CellStyle.ForeColor, args.CellStyle.BackColor) =
                CellColor.GetSkewColor(roll.BackingCode, (double)args.Value, this.serviceSettings);
        }