public PersistableObjectCollectionDockContent(IActivateItems activator, IObjectCollectionControl control, IPersistableObjectCollection collection) : base(activator.RefreshBus) { _control = control; //tell the control what it's collection is control.SetCollection(activator, collection); //ask the control what it wants its name to be TabText = _control.GetTabName(); }
public override void RefreshBus_RefreshObject(object sender, RefreshObjectEventArgs e) { var newTabName = _control.GetTabName(); var floatWindow = ParentForm as CustomFloatWindow; if (floatWindow != null) { floatWindow.Text = newTabName; } TabText = newTabName; //pass the info on to the control _control.RefreshBus_RefreshObject(sender, e); }