Exemple #1
0
        public void UpdateWith(PropertyUpdateContext theUpdateContext)
        {
            foreach (var aRow in Rows)
            {
                foreach (var aCell in aRow.Cells)
                {
                    if (!aCell.TextExpression.IsEmpty)
                    {
                        var textExpression       = aCell.TextExpression;
                        var textExpressionResult = textExpression.ExecuteWith(theUpdateContext);
                        aCell.Text = Convert.ToString(textExpressionResult);
                    }

                    if (!aCell.BackgroundColorExpression.IsEmpty)
                    {
                        var colorExpression = aCell.BackgroundColorExpression;
                        colorExpression.ExecuteWith(theUpdateContext);
                    }
                }
            }
        }
 /// <summary>
 /// Update a graphic with a property update.
 /// </summary>
 /// <param name="theUpdateContext">Property update context.</param>
 public virtual void UpdateWith(PropertyUpdateContext theUpdateContext)
 {
     // Default implementation. Override as appropriate.
 }
 /// <summary>
 /// Update a table with a property update.
 /// </summary>
 /// <param name="theUpdateContext">Property update context.</param>
 public override void UpdateWith(PropertyUpdateContext theUpdateContext)
 {
     Table.UpdateWith(theUpdateContext);
 }