internal static ConfigurationChangedEventArgs CreateFromButtons()
        {
            var args = new ConfigurationChangedEventArgs();

            args.OldFavorites = new List<FavoriteConfigurationElement>();
            args.NewFavorites = new List<FavoriteConfigurationElement>();
            args.OldTags = new List<string>();
            args.NewTags = new List<string>();

            return args;
        }
        internal static ConfigurationChangedEventArgs CreateFromSettings(
          TerminalsConfigurationSection oldSettings,
          TerminalsConfigurationSection newSettings)
        {
            var args = new ConfigurationChangedEventArgs();

              args.OldFavorites = oldSettings.Favorites.ToList();
              args.NewFavorites = newSettings.Favorites.ToList();
              args.OldTags = oldSettings.Tags.ToList();
              args.NewTags = newSettings.Tags.ToList();

              return args;
        }
 private void OnSettingsConfigurationChanged(ConfigurationChangedEventArgs args)
 {
     LoadFavoritesToolbar();
 }
Esempio n. 4
0
 private void FireConfigurationChanged(ConfigurationChangedEventArgs args)
 {
     this.ConfigurationChanged?.Invoke(args);
 }
 private void FireConfigurationChanged(ConfigurationChangedEventArgs args)
 {
     if (ConfigurationChanged != null)
     {
         ConfigurationChanged(args);
     }
 }
        private void FireButtonsChangedEvent()
        {
            var args = ConfigurationChangedEventArgs.CreateFromButtons();

            FireConfigurationChanged(args);
        }