Exemple #1
0
        public Filter(DisplayColumn column, Operator op, string value)
        {
            if ((column == null))
            {
                throw new ArgumentException("column cannot be null");
            }
            if ((op == null))
            {
                throw new ArgumentException("operator cannot be null");
            }
            if ((column.DatabaseColumns == null || column.DatabaseColumns.Count == 0))
            {
                throw new Exception("DisplayColumn contains no database columns");
            }

            m_Column       = column;
            m_Operator     = op;
            m_DisplayValue = value;
            m_Options.Add(new FilterOption(m_Column.DatabaseColumns[0], op.Key, value));
        }
Exemple #2
0
 public SortColumn(DisplayColumn column, string sort)
 {
     m_Column        = column;
     m_SortDirection = sort;
 }