In Depth Banner
Skip Navigation Links

Select your preferred language

The FilterableDemoClass

  class FilterableDemoClass : FilterablePropertyBase

  {

    public enum FilterSelect

    {

      One,

      Some,

      All

    }

 

    FilterSelect _chooseOne=FilterSelect.One;

    public FilterSelect ChooseOne

    {

      get{return _chooseOne;}

      set{_chooseOne=value;}

    }

 

 

    string _firstProperty;

    [

    DynamicPropertyFilter("ChooseOne", "One,All")

    ]

    public string FirstProperty

    {

      get{return _firstProperty;}

      set{_firstProperty=value;}

    }

 

    string _secondProperty;

    [

    DynamicPropertyFilter("ChooseOne", "Some,All")

    ]

    public string SecondProperty

    {

      get{return _secondProperty;}

      set{_secondProperty=value;}

    }

 

    string _thirdProperty;

    [

    DynamicPropertyFilter("ChooseOne", "Some,All")

    ]

    public string ThirdProperty

    {

      get{return _thirdProperty;}

      set{_thirdProperty=value;}

    }

 

    string _fourthProperty;

    [

    DynamicPropertyFilter("ChooseOne", "All")

    ]

    public string FourthProperty

    {

      get{return _fourthProperty;}

      set{_fourthProperty=value;}

    }

 

  }

 

Use your Back button to return to the article

Copyright © Bob Powell 2003-2009. All rights reserved