예제 #1
0
        public void PreviewLanguage(MNBookLanguage bl, string fileName)
        {
            MNLocalisation file = new MNLocalisation();

            bl.FilePath = fileName;
            file.Load(bl.FilePath, false);
            bl.BookCode     = file.GetProperty("BookCode");
            bl.LanguageName = file.GetProperty("LanguageName");
            bl.LastTimeSave = file.GetProperty("LastChange");
        }
예제 #2
0
        public void FindLanguageFiles(string directory)
        {
            if (directory.Length == 0)
            {
                return;
            }

            List <string> langFileNames = new List <string>();

            foreach (string s in Directory.EnumerateFiles(directory))
            {
                if (s.EndsWith(".sme"))
                {
                    MNBookLanguage bl = new MNBookLanguage();
                    PreviewLanguage(bl, s);
                    if (bl.BookCode == this.BookCode)
                    {
                        Languages.Add(bl);
                    }
                }
            }
        }