예제 #1
0
 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);
 }
예제 #2
0
 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);
 }