Example #1
0
    internal void RemoveDisplayEditorMatchingCondition( CellEditorDisplayConditions condition )
    {
      CellEditorDisplayConditions previousValue = ( CellEditorDisplayConditions )this.GetValue( Row.RowDisplayEditorMatchingConditionsProperty );

      previousValue = previousValue & ~condition;

      this.SetValue( Row.RowDisplayEditorMatchingConditionsProperty, previousValue );
    }
Example #2
0
    internal void SetDisplayEditorMatchingCondition( CellEditorDisplayConditions condition )
    {
      CellEditorDisplayConditions previousValue = ( CellEditorDisplayConditions )this.GetValue( Cell.CellDisplayEditorMatchingConditionsProperty );

      previousValue = previousValue | condition;

      this.SetValue( Cell.CellDisplayEditorMatchingConditionsProperty, previousValue );
    }
Example #3
0
 internal static bool IsCellEditorDisplayConditionsSet( Row row, CellEditorDisplayConditions condition )
 {
   return ( ( row.CellEditorDisplayConditions & condition ) == condition );
 }
Example #4
0
    internal static bool IsCellEditorDisplayConditionsSet( Cell cell, CellEditorDisplayConditions condition )
    {
      if( ( cell.CellEditorDisplayConditions & condition ) == condition )
        return true;

      return false;
    }