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;}
}
}
Class
FilterableDemoClass
Inherits FilterablePropertyBase
Public Enum
FilterSelect
One
Some
All
End Enum
Private _chooseOne As
FilterSelect
Public Property
ChooseOne() As FilterSelect
Get
Return
_chooseOne
End
Get
Set(ByVal
Value As FilterSelect)
_chooseOne
= Value
End
Set
End Property
Private _firstProperty
As String
<DynamicPropertyFilter("ChooseOne",
"One,All")> _
Public Property
FirstProperty() As
String
Get
Return
_firstProperty
End
Get
Set(ByVal
Value As String)
_firstProperty = Value
End
Set
End Property
Private _secondProperty
As String
<DynamicPropertyFilter("ChooseOne", "Some,All")> _
Public Property
SecondProperty() As
String
Get
Return
_secondProperty
End
Get
Set(ByVal
Value As String)
_secondProperty = Value
End
Set
End Property
Private _thirdProperty
As String
<DynamicPropertyFilter("ChooseOne",
"Some,All")> _
Public Property
ThirdProperty() As
String
Get
Return
_thirdProperty
End
Get
Set(ByVal
Value As String)
_thirdProperty
= Value
End
Set
End Property
Private _fourthProperty
As String
<DynamicPropertyFilter("ChooseOne",
"All")> _
Public Property
FourthProperty() As
String
Get
Return
_fourthProperty
End
Get
Set(ByVal
Value As String)
_fourthProperty
= Value
End
Set
End Property
End
Class