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); }
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); }