예제 #1
0
 void load_language()
 {
     using (var file = IsolatedStorageFile.GetUserStoreForApplication().OpenFile("Language.txt", FileMode.Open))
     {
         using (var fileReader = new StreamReader(file))
         {
             language = WhatLanguage(fileReader.ReadToEnd());
         }
     }
 }
예제 #2
0
 public Controller(MZLanguage language)
 {
     if (language == MZLanguage.Russian)
     {
         RussianInit();
     }
     if (language == MZLanguage.English)
     {
         EnglishInit();
     }
 }
예제 #3
0
 string MZlang_to_string(MZLanguage Language)
 {
     if (Language == MZLanguage.English)
     {
         return("English");
     }
     if (Language == MZLanguage.Russian)
     {
         return("Russian");
     }
     return("Error");
 }
예제 #4
0
 private int CurrentLanguage(MZLanguage currentlanguage)
 {
     if (currentlanguage == MZLanguage.English)
     {
         return(0);
     }
     if (currentlanguage == MZLanguage.Russian)
     {
         return(1);
     }
     return(-1);
 }