Beispiel #1
0
 public void TryAddModules(string[] modules)
 {
     foreach (string module in modules)
     {
         if (!ModuleNames.Contains(module))
         {
             ModuleNames.Add(module);
         }
     }
 }
Beispiel #2
0
        public ITranslationModule this[string moduleName]
        {
            get
            {
                if (!Collection.Projects.ContainsKey(moduleName) && ModuleNames.Contains(moduleName))
                {
                    Collection.Projects.Add(moduleName, IO.ResX.FromResX(this.Directory, moduleName, this.MasterLanguage));
                }


                return(Collection.Projects[moduleName]);
            }

            set
            {
                if (!Collection.Projects.ContainsKey(moduleName))
                {
                    Collection.Projects.Add(moduleName, value);
                    IO.ResX.ToResX(value, this.Directory);
                }
            }
        }