コード例 #1
0
 public static string Print(this ScienceRecoveryMethod recoveryMethod)
 {
     if (recoveryMethod == ScienceRecoveryMethod.RecoverOrTransmit)
     {
         return("Recover or transmit");
     }
     return(recoveryMethod.ToString());
 }
コード例 #2
0
 public static string Print(this ScienceRecoveryMethod recoveryMethod)
 {
     if (recoveryMethod != ScienceRecoveryMethod.Ideal)
     {
         return(Localizer.GetStringByTag(StringBuilderCache.Format("#cc.param.CollectScience.rm.{0}", recoveryMethod.ToString())));
     }
     return(recoveryMethod.ToString());
 }