void OnConfigurationsChanged(object sender, ConfigurationEventArgs e)
 {
     Console.WriteLine ("combo OnConfigurationsChanged");
     RefreshCombo (Runtime.ProjectService.CurrentOpenCombine);
 }
 void OnActiveConfigurationChanged(object sender, ConfigurationEventArgs e)
 {
     Combine combine = (Combine) e.CombineEntry;
     for (int n=0; n < combine.Configurations.Count; n++) {
         IConfiguration c = combine.Configurations [n];
         if (combine.ActiveConfiguration == c) {
             combo.Active = n;
             break;
         }
     }
 }
 void OnConfigurationRemovedFromCollection(object ob, ConfigurationEventArgs args)
 {
     if (activeConfiguration == args.Configuration) {
         if (Configurations.Count > 0)
             ActiveConfiguration = Configurations [0];
         else
             ActiveConfiguration = null;
     }
     OnConfigurationRemoved (new ConfigurationEventArgs (this, args.Configuration));
 }
 void OnConfugurationChanged(object ob, ConfigurationEventArgs args)
 {
     OnActiveConfigurationChanged ();
 }
 void OnConfigurationAddedToCollection(object ob, ConfigurationEventArgs args)
 {
     OnConfigurationAdded (new ConfigurationEventArgs (this, args.Configuration));
     if (activeConfiguration == null)
         ActiveConfiguration = args.Configuration;
 }
 protected virtual void OnConfigurationRemoved(ConfigurationEventArgs args)
 {
     if (ConfigurationRemoved != null)
         ConfigurationRemoved (this, args);
 }
 protected virtual void OnActiveConfigurationChanged(ConfigurationEventArgs args)
 {
     if (ActiveConfigurationChanged != null)
         ActiveConfigurationChanged (this, args);
 }
 protected override void OnActiveConfigurationChanged(ConfigurationEventArgs args)
 {
     if (ActiveConfiguration != null && !deserializing) {
         foreach (CombineConfigurationEntry cce in ((CombineConfiguration)ActiveConfiguration).Entries) {
             IConfiguration conf = cce.Entry.GetConfiguration (cce.ConfigurationName);
             cce.Entry.ActiveConfiguration = conf;
         }
     }
     base.OnActiveConfigurationChanged  (args);
 }
 public void OnConfigurationsChanged(object sender, ConfigurationEventArgs args)
 {
     ITreeBuilder tb = Context.GetTreeBuilder (sender);
     if (tb != null) tb.UpdateAll ();
 }