Exemplo n.º 1
0
    public static string getConfigPath(BasicPathType type) {
      switch (type) {
        case BasicPathType.Url: return getConfigPath(BasicPathType.AppUrl) + "/data";
#if SILVERLIGHT && !eTestMeManager
        case BasicPathType.AppUrl: return SettingModel.appRootUrl();
#endif
        default: return configPaths[type];
      }
    }
Exemplo n.º 2
0
 public static string Ext(BasicPathType typ) {
   return typ == BasicPathType.MP3 ? ".mp3" : ".wav";
 }
Exemplo n.º 3
0
    public static string SoundBasicPath(BasicPathType basicPath, Langs lang) {
      if (lang == Langs.no) return getConfigPath(basicPath);
#if !eTestMeManager
      if (basicPath == BasicPathType.Url)
        return (Machines.isPZComp() ? "http://download.langmaster.cz/data" : getConfigPath(basicPath)) + "/sound/" + lang.ToString();  
      else
#endif
        return getConfigPath(basicPath) + '\\' + lang.ToString();
    }
Exemplo n.º 4
0
 public static string EncodeWordToPath(BasicPathType basicPath, SoundSrcId srcId, Langs lang, string w, string ext) {
   if (string.IsNullOrEmpty(w)) return w;
   w = LMComLib.Extensions.soundNormalize(w, sb);
   Tuple dir = WordDir(w);
   char slash = basicPath == BasicPathType.Url ? '/' : '\\';
   return SoundBasicPath(basicPath, lang) + slash + "src" + (int)srcId + slash + dir.Item1.ToString() + slash + dir.Item2.ToString() + slash + EncodeWordToFn(w) + ext;
 }