private void SwitchCulture(object param) { CurrentCulture = param as string; EnglishImage = GetImageSource(English); RussianImage = GetImageSource(Russian); LanguageSwitched?.Invoke(this, new EventArgs()); }
protected override void MenuItemSelected() { if (LanguageManager.CurrentLanguage == Language) { return; } LanguageManager.CurrentLanguage = Language; LanguageSwitched?.Invoke(); }