Пример #1
0
        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);
        }
Пример #2
0
        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);
        }