public void InitializeModule() { if (Settings.Default.CurrentLanguage == null) Settings.Default.CurrentLanguage = Thread.CurrentThread.CurrentUICulture.Name; switcher = new LanguageSwitcher("/ClearMine.Localization;component/{0}/Overall.xaml", new[] { typeof(string), typeof(ImageSource) }, true); switcher.Initialized += OnLanguageSwitcherInitailized; MessageManager.SubscribeMessage<UIComponentLoadedMessage>(OnUIComponentLoaded); }
public override void Initialize() { MessageManager.SubscribeMessage<GameStateMessage>(OnGameStateChanged); MessageManager.SubscribeMessage<UserOperationMessage>(OnUserOperation); switcher = new LanguageSwitcher("/ClearMine.Plugin.AudioPlayer;component/Localization/{0}.xaml", new[] { typeof(string) }, false); }