About Enum

public enum ActiveType

{

New = 0,

AfterSales

 

代码
   public ActiveType Type
        {
            
get
            {
                
return ViewState["type"== null ? ActiveType.New : (ActiveType)Convert.ToInt32(ViewState["type"]);
            }
            
set
            {
                ViewState[
"type"= value;
                
if (value == ActiveType.New)
                {
                    lbTitle.Text 
= "新车市场活动";
                }
                
else
                {
                    lbTitle.Text 
= "售后市场活动";
                }
            }
        }

 

}

posted on 2010-02-25 13:41  Paul_  阅读(132)  评论(0编辑  收藏  举报

导航