Ejemplo n.º 1
0
 public static bool Equals(EProgressType type, string typeStr)
 {
     if (string.IsNullOrEmpty(typeStr))
     {
         return(false);
     }
     if (string.Equals(GetValue(type).ToLower(), typeStr.ToLower()))
     {
         return(true);
     }
     return(false);
 }
Ejemplo n.º 2
0
 public static string GetValue(EProgressType type)
 {
     if (type == EProgressType.CreateChannels)
     {
         return("CreateChannels");
     }
     if (type == EProgressType.CreateContents)
     {
         return("CreateContents");
     }
     throw new Exception();
 }
Ejemplo n.º 3
0
 public static bool Equals(string typeStr, EProgressType type)
 {
     return(Equals(type, typeStr));
 }