internal void NotifyDesigner() { if (WebControls.IsDesignMode() && (base.Site != null)) { IDesignerHost dh = (IDesignerHost)base.Site.Container; ControlDesigner designer = (ControlDesigner)dh.GetDesigner(this); PropertyDescriptor pd = TypeDescriptor.GetProperties(this)["Toolbar"]; ComponentChangedEventArgs objArgs = new ComponentChangedEventArgs(this, pd, null, this); designer.OnComponentChanged(this, objArgs); } }
/// <summary> /// This method is used to ensure that designer is notified /// every time there is a change in the sub-ordinate validators /// </summary> internal void NotifyDesigner() { if (this.DesignMode) { IDesignerHost Host = this.Site.Container as IDesignerHost; ControlDesigner Designer = Host.GetDesigner(this) as ControlDesigner; PropertyDescriptor Descriptor = null; try { Descriptor = TypeDescriptor.GetProperties(this)["PopupInfoItems"]; } catch { return; } ComponentChangedEventArgs ccea = new ComponentChangedEventArgs(this, Descriptor, null, this.PopupInfoItems); Designer.OnComponentChanged(this, ccea); } }