protected virtual void OnDefaultConfigurationChanged(ConfigurationEventArgs args)
 {
     if (DefaultConfigurationChanged != null)
     {
         DefaultConfigurationChanged(this, args);
     }
 }
 protected virtual void OnConfigurationRemoved(ConfigurationEventArgs args)
 {
     if (ConfigurationRemoved != null)
     {
         ConfigurationRemoved(this, args);
     }
 }
 void OnConfigurationAddedToCollection(object ob, ConfigurationEventArgs args)
 {
     NotifyModified("Configurations");
     OnConfigurationAdded(new ConfigurationEventArgs(this, args.Configuration));
     if (ConfigurationsChanged != null)
     {
         ConfigurationsChanged(this, EventArgs.Empty);
     }
     if (activeConfiguration == null)
     {
         DefaultConfigurationId = args.Configuration.Id;
     }
 }
 void OnConfigurationRemovedFromCollection(object ob, ConfigurationEventArgs args)
 {
     if (activeConfiguration == args.Configuration)
     {
         if (Configurations.Count > 0)
         {
             DefaultConfiguration = Configurations [0];
         }
         else
         {
             DefaultConfiguration = null;
         }
     }
     NotifyModified("Configurations");
     OnConfigurationRemoved(new ConfigurationEventArgs(this, args.Configuration));
     if (ConfigurationsChanged != null)
     {
         ConfigurationsChanged(this, EventArgs.Empty);
     }
 }
Esempio n. 5
0
 internal protected virtual void OnConfigurationRemoved(ConfigurationEventArgs args)
 {
     next.OnConfigurationRemoved(args);
 }
Esempio n. 6
0
 internal protected virtual void OnDefaultConfigurationChanged(ConfigurationEventArgs args)
 {
     next.OnDefaultConfigurationChanged(args);
 }
Esempio n. 7
0
 protected override void OnDefaultConfigurationChanged(ConfigurationEventArgs args)
 {
     base.OnDefaultConfigurationChanged (args);
 }
		void OnConfugurationChanged (object ob, ConfigurationEventArgs args)
		{
			OnActiveConfigurationChanged ();
		}
		public void OnConfigurationsChanged (object sender, ConfigurationEventArgs args)
		{
			ITreeBuilder tb = Context.GetTreeBuilder (sender);
			if (tb != null) tb.UpdateAll ();
		}
		internal protected virtual void OnConfigurationRemoved (ConfigurationEventArgs args)
		{
			next.OnConfigurationRemoved (args);
		}
		internal protected virtual void OnDefaultConfigurationChanged (ConfigurationEventArgs args)
		{
			next.OnDefaultConfigurationChanged (args);
		}