Base cross-domain event args
Inheritance: CrossDomainObject
 private void OnLanguageChangedInternal(object sender, BaseEventArgs e)
 {
     if (!this.Dispatcher.CheckAccess()) {
         this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new BaseEventHandler((s, e2) => {
             OnLanguageChangedInternal(sender, e2);
         }), sender, e);
         return;
     }
     this.DataContext = LanguageManager.Model;
     OnLanguageChanged(sender, e);
 }
 private void OnLanguageChanged(object sender, BaseEventArgs e)
 {
     if (!this.Dispatcher.CheckAccess()) {
         this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new BaseEventHandler((s, e2) => {
             OnLanguageChanged(sender, e2);
         }), sender, e);
         return;
     }
     NotifyPropertyChanged("LevelText");
 }
 private async void UpdateManager_FileSystemOpenError(object sender, BaseEventArgs e) {
     if (!this.Dispatcher.CheckAccess()) {
         this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new BaseEventHandler((s, e2) => {
             UpdateManager_FileSystemOpenError(sender, e2);
         }), sender, e);
         return;
     }
     await CheckGameAccessMessage();
     SetUpdateEnabled(false);
 }
 private void OnProfileChanged(object sender, BaseEventArgs e) {
     if (!this.Dispatcher.CheckAccess()) {
         this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new BaseEventHandler((s, e2) => {
             OnProfileChanged(sender, e2);
         }), sender, e);
         return;
     }
     StartButton.IsEnabled = false;
     StartButton.SetBinding(Button.ContentProperty, WaitingButtonBinding);
     CheckWorker.RunWorkerAsync();
 }
 /// <summary>
 /// OnClick handler accessor
 /// </summary>
 /// <param name="sender">Sender</param>
 /// <param name="args">Arguments</param>
 public void OnClick(object sender, BaseEventArgs args)
 {
     if (Click != null) {
         Click(sender, args);
     }
 }
 private void ReloadProfiles(object sender, BaseEventArgs e)
 {
     if (!this.Dispatcher.CheckAccess()) {
         this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new BaseEventHandler((s, e2) => {
             ReloadProfiles(sender, e2);
         }), sender, e);
         return;
     }
     IsPreventChange = true;
     ProfileList.ItemsSource = ProfileManager.Profiles;
     ProfileList.SelectedItem = ProfileManager.CurrentProfile;
     IsPreventChange = false;
 }
 /// <summary>
 /// Во время смены профиля нам нужно считать файл ресурсов и сбросить настройки
 /// </summary>
 protected override void OnProfileChanged(object sender, BaseEventArgs e)
 {
     FileSystem = App.Kernel.Get<IFileSystemManager>();
     LoadResourceList();
     ResetCurrent();
     ResetSelect();
 }
 protected override void OnProfileChanged(object sender, BaseEventArgs e)
 {
     // nothing to do
 }
 public void OnDownloadStarted(object sender, BaseEventArgs e)
 {
     // nothing to do
 }
 public void OnDownloadStarted(object sender, BaseEventArgs e)
 {
     if (!this.Dispatcher.CheckAccess()) {
         this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new BaseEventHandler((s, e2) => {
             OnDownloadStarted(s, e2);
         }), sender, e);
         return;
     }
     BlockControls(true);
     LoadProgressBar.Value = 0;
     LoadProgressBar.Maximum = 100;
     LoadProgressStatus.Text = string.Empty;
     ProgressBlock.Visibility = System.Windows.Visibility.Visible;
 }
 protected override void OnProfileChanged(object sender, BaseEventArgs e)
 {
     IConfiguration currentConfiguration = ConfigurationManager.GetConfiguration(ProfileManager.CurrentProfile.GameModel);
     serversProvider = currentConfiguration.ServersProvider;
     webProvider = currentConfiguration.CreateWebProvider();
     GuildInfoModel.UnLoadData();
     TDBlock_.ClearAll();
     IsDetailedCheckbox.IsChecked = false;
     // use lazy ServerList initialization to prevent first long EF6 database
     // init causes the long app start time
     if (IsPageActivated) {
         LoadServerList();
     }
 }
 private void OnLanguageChanged(object sender, BaseEventArgs e) {
     if (!this.Dispatcher.CheckAccess()) {
         this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new BaseEventHandler((s, e2) => {
             OnLanguageChanged(sender, e2);
         }), sender, e);
         return;
     }
     Run run = sender as Run;
     if (run != null) {
         run.Text = LanguageManager.Model.Settings_AppLocale_Help;
     }
 }
 /// <summary>
 /// <see cref="IProfileManager.ProfileChanged"/> event handler
 /// </summary>
 /// <param name="sender">Sender</param>
 /// <param name="e">Arguments</param>
 protected abstract void OnProfileChanged(object sender, BaseEventArgs e);
 protected override void OnProfileChanged(object sender, BaseEventArgs e)
 {
     GalleryModel.UnLoadData();
     IsGalleryInitialized = false;
     if (IsPageVisible) {
         OnShow();
     }
 }
 public void OnDownloadStarted(object sender, BaseEventArgs e)
 {
     Object.OnDownloadStarted(sender, e);
 }
 private void OnProfileChanged(object sender, BaseEventArgs e)
 {
     if (!this.Dispatcher.CheckAccess()) {
         this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new BaseEventHandler((s, e2) => {
             OnProfileChanged(sender, e2);
         }), sender, e);
         return;
     }
     IsSourceLoaded = false;
 }
        private void ReloadNews(object sender, BaseEventArgs e)
        {
            if (!this.Dispatcher.CheckAccess()) {
                this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new BaseEventHandler((s, e2) => {
                    ReloadNews(sender, e2);
                }), sender, e);
                return;
            }
            Profile currentProfile = ProfileManager.CurrentProfile;
            string currentUrl = string.Format(URLUtils.TWITTER_PROXY, currentProfile.News.TwitterUser);
            if (_jsonUrl != currentUrl) {
                _jsonUrl = currentUrl;
            }

            ServerVM.UnLoadData();
            ServerNews.Clear();
            TwitterVM.UnLoadData();

            bool newsSupported = ConfigurationManager.GetConfiguration(ProfileManager.CurrentProfile.GameModel).IsNewsAvailable;
            NavServer.Visibility = newsSupported ? Visibility.Visible : Visibility.Hidden;
            NavTwitter.Visibility = newsSupported ? Visibility.Visible : Visibility.Hidden;
            byte index = newsSupported ? currentProfile.News.FirstTab : (byte)0;
            NewsTabControl.SelectedIndex = index;
            ShowTab(index);
        }
 protected virtual void OnLanguageChanged(object sender, BaseEventArgs e)
 {
 }
 private void OnProfileChanged(object sender, BaseEventArgs e)
 {
     if (!this.Dispatcher.CheckAccess()) {
         this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new BaseEventHandler((s, e2) => {
             OnProfileChanged(sender, e2);
         }), sender, e);
         return;
     }
     NavControl.SelectedIndex = 0;
 }
 private void OnProfileChanged(object sender, BaseEventArgs e)
 {
     if (!this.Dispatcher.CheckAccess()) {
         this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new BaseEventHandler((s, e2) => {
             OnProfileChanged(sender, e2);
         }), sender, e);
         return;
     }
     MenuFlyout.Width = ProfileSwitcher.ActualWidth + FLYOUT_WIDTH_MIN;
     SettingsFlyout.Width = ProfileSwitcher.ActualWidth + FLYOUT_WIDTH_MIN;
 }