W
Wannabe
public enum Panes
{
AccountSetup,
ProgramManagement,
CampaignManagement,
ProgramAccounting,
Partners,
MemberMangement,
SysAdmin
}
Accordion1.SelectedIndex = Panes.AccountSetup;
In the example above, you have to cast Panes.AccountSetup to an int so
Accordion1.SelectedIndex will accept it. I will be using this a lot and would
like to be able to do this without having to cast it everytime I use it. Is
there a way to set up a get accessor (a generic or anything) to cast it for
me? I want to be able to still type it like an enum to keep it readable.
{
AccountSetup,
ProgramManagement,
CampaignManagement,
ProgramAccounting,
Partners,
MemberMangement,
SysAdmin
}
Accordion1.SelectedIndex = Panes.AccountSetup;
In the example above, you have to cast Panes.AccountSetup to an int so
Accordion1.SelectedIndex will accept it. I will be using this a lot and would
like to be able to do this without having to cast it everytime I use it. Is
there a way to set up a get accessor (a generic or anything) to cast it for
me? I want to be able to still type it like an enum to keep it readable.