Пример #1
0
 public override void Initialize(IComponent component)
 {
     ControlDesigner.VerifyInitializeArgument(component, typeof(System.Web.UI.WebControls.Menu));
     base.Initialize(component);
     this._menu = (System.Web.UI.WebControls.Menu)component;
     base.SetViewFlags(ViewFlags.TemplateEditing, true);
 }
Пример #2
0
        public override void Initialize(IComponent component)
        {
            ControlDesigner.VerifyInitializeArgument(component, typeof(BaseDataBoundControl));
            base.Initialize(component);
            base.SetViewFlags(ViewFlags.DesignTimeHtmlRequiresLoadComplete, true);
            if (base.RootDesigner != null)
            {
                if (base.RootDesigner.IsLoading)
                {
                    base.RootDesigner.LoadComplete += new EventHandler(this.OnDesignerLoadComplete);
                }
                else
                {
                    this.OnDesignerLoadComplete(null, EventArgs.Empty);
                }
            }
            IComponentChangeService service = (IComponentChangeService)component.Site.GetService(typeof(IComponentChangeService));

            if (service != null)
            {
                service.ComponentAdded    += new ComponentEventHandler(this.OnComponentAdded);
                service.ComponentRemoving += new ComponentEventHandler(this.OnComponentRemoving);
                service.ComponentRemoved  += new ComponentEventHandler(this.OnComponentRemoved);
                service.ComponentChanged  += new ComponentChangedEventHandler(this.OnAnyComponentChanged);
            }
        }
Пример #3
0
 public override void Initialize(IComponent component)
 {
     ControlDesigner.VerifyInitializeArgument(component, typeof(FormView));
     base.Initialize(component);
     if (base.View != null)
     {
         base.View.SetFlags(ViewFlags.TemplateEditing, true);
     }
 }
 public override void Initialize(IComponent component)
 {
     ControlDesigner.VerifyInitializeArgument(component, typeof(DeclarativeCatalogPart));
     base.Initialize(component);
     this._catalogPart = (DeclarativeCatalogPart)component;
     if (base.View != null)
     {
         base.View.SetFlags(ViewFlags.TemplateEditing, true);
     }
 }
Пример #5
0
 public override void Initialize(IComponent component)
 {
     ControlDesigner.VerifyInitializeArgument(component, typeof(SiteMapPath));
     base.Initialize(component);
     this._navigationPath = (SiteMapPath)component;
     if (base.View != null)
     {
         base.View.SetFlags(ViewFlags.TemplateEditing, true);
     }
 }
 public override void Initialize(IComponent component)
 {
     ControlDesigner.VerifyInitializeArgument(component, typeof(DataList));
     base.Initialize(component);
 }
 public override void Initialize(IComponent component)
 {
     ControlDesigner.VerifyInitializeArgument(component, typeof(ChangePassword));
     this._changePassword = (ChangePassword)component;
     base.Initialize(component);
 }
 public override void Initialize(IComponent component)
 {
     ControlDesigner.VerifyInitializeArgument(component, typeof(INamingContainer));
     base.Initialize(component);
 }
 public override void Initialize(IComponent component)
 {
     ControlDesigner.VerifyInitializeArgument(component, typeof(EditorZone));
     base.Initialize(component);
     this._zone = (EditorZone)component;
 }
 public override void Initialize(IComponent component)
 {
     ControlDesigner.VerifyInitializeArgument(component, typeof(PasswordRecovery));
     this._passwordRecovery = (PasswordRecovery)component;
     base.Initialize(component);
 }
 public override void Initialize(IComponent component)
 {
     ControlDesigner.VerifyInitializeArgument(component, typeof(CatalogPart));
     this._catalogPart = (CatalogPart)component;
     base.Initialize(component);
 }
Пример #12
0
 public override void Initialize(IComponent component)
 {
     ControlDesigner.VerifyInitializeArgument(component, typeof(ProxyWebPartManager));
     base.Initialize(component);
 }
Пример #13
0
 public override void Initialize(IComponent component)
 {
     ControlDesigner.VerifyInitializeArgument(component, typeof(System.Web.UI.WebControls.ListControl));
     base.Initialize(component);
 }
Пример #14
0
 public override void Initialize(IComponent component)
 {
     ControlDesigner.VerifyInitializeArgument(component, typeof(WebPartZoneBase));
     base.Initialize(component);
 }
 public override void Initialize(IComponent component)
 {
     ControlDesigner.VerifyInitializeArgument(component, typeof(LoginView));
     this._loginView = (LoginView)component;
     base.Initialize(component);
 }
Пример #16
0
 public override void Initialize(IComponent component)
 {
     ControlDesigner.VerifyInitializeArgument(component, typeof(System.Web.UI.WebControls.XmlDataSource));
     base.Initialize(component);
     this._xmlDataSource = (System.Web.UI.WebControls.XmlDataSource)component;
 }
Пример #17
0
 public override void Initialize(IComponent component)
 {
     ControlDesigner.VerifyInitializeArgument(component, typeof(Xml));
     this.xml = (Xml)component;
     base.Initialize(component);
 }