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