Exemplo n.º 1
0
 public static bool Equals(EUserBindingType type, string typeStr)
 {
     if (string.IsNullOrEmpty(typeStr))
     {
         return(false);
     }
     if (string.Equals(GetValue(type).ToLower(), typeStr.ToLower()))
     {
         return(true);
     }
     return(false);
 }
 public static string GetText(EUserBindingType type)
 {
     if (type == EUserBindingType.Weibo)
     {
         return("新浪微博");
     }
     if (type == EUserBindingType.QQ)
     {
         return("QQ");
     }
     throw new Exception();
 }
Exemplo n.º 3
0
 public static string GetValue(EUserBindingType type)
 {
     if (type == EUserBindingType.Weibo)
     {
         return("Weibo");
     }
     else if (type == EUserBindingType.QQ)
     {
         return("QQ");
     }
     else
     {
         throw new Exception();
     }
 }
Exemplo n.º 4
0
 public static string GetText(EUserBindingType type)
 {
     if (type == EUserBindingType.Weibo)
     {
         return("ÐÂÀË΢²©");
     }
     else if (type == EUserBindingType.QQ)
     {
         return("QQ");
     }
     else
     {
         throw new Exception();
     }
 }
Exemplo n.º 5
0
 public static bool Equals(string typeStr, EUserBindingType type)
 {
     return(Equals(type, typeStr));
 }