示例#1
0
 private static S1ListItem MyS1ListItem(MyGroupTypes type)
 {
     var itemName = "";
     switch (type)
     {
         case MyGroupTypes.MyFavorite:
             itemName = "我的收藏";
             break;
         case MyGroupTypes.MyThreads:
             itemName = "我的主题";
             break;
         case MyGroupTypes.MyReplys:
             itemName = "我回复的主题";
             break;
     }
     return new S1ListItem(itemName, ((int) type).ToString(), null);
 }
示例#2
0
        private static S1ListItem MyS1ListItem(MyGroupTypes type)
        {
            var itemName = "";

            switch (type)
            {
            case MyGroupTypes.MyFavorite:
                itemName = "我的收藏";
                break;

            case MyGroupTypes.MyThreads:
                itemName = "我的主题";
                break;

            case MyGroupTypes.MyReplys:
                itemName = "我回复的主题";
                break;
            }
            return(new S1ListItem(itemName, ((int)type).ToString(), null));
        }