public void SetCutBowColor(DataGridViewCellFormattingEventArgs args, IServiceSettings settings) { GreigeRoll roll = this.carpetProcessor.PatternRepeatLogic.CurrentRoll; (args.CellStyle.ForeColor, args.CellStyle.BackColor) = CellColor.GetBowColor(roll.BackingCode, (double)args.Value, this.serviceSettings); }
public void SetBowColor(DataGridViewCellFormattingEventArgs args, IServiceSettings settings) { GreigeRoll roll = (GreigeRoll)this.grdGreigeRoll.Rows[args.RowIndex].DataBoundItem; (args.CellStyle.ForeColor, args.CellStyle.BackColor) = CellColor.GetBowColor(roll.BackingCode, (double)args.Value, this.serviceSettings); }