/* public void Host_OnLoadComplete(object sender, EventArgs e) { if(!_rebar.Created) _rebar.CreateControl(); } */ public override void Initialize( IComponent component ) { base.Initialize( component ); if ( Control is Rebar ) { _rebar = (Rebar)Control; /* mPropertyTree.PaneActivated += new PropertyTree.PaneActivatedEventHandler(ptPaneActivated); */ _host = (IDesignerHost) GetService( typeof( IDesignerHost ) ); _selService = (ISelectionService) GetService( typeof( ISelectionService ) ); //_host.LoadComplete += new EventHandler(Host_OnLoadComplete); //if(!_rebar.Created) _rebar.CreateControl(); } }
/* * public void Host_OnLoadComplete(object sender, EventArgs e) * { * if(!_rebar.Created) _rebar.CreateControl(); * } */ public override void Initialize(IComponent component) { base.Initialize(component); if (Control is Rebar) { _rebar = (Rebar)Control; /* * mPropertyTree.PaneActivated += * new PropertyTree.PaneActivatedEventHandler(ptPaneActivated); */ _host = (IDesignerHost) GetService(typeof(IDesignerHost)); _selService = (ISelectionService) GetService(typeof(ISelectionService)); //_host.LoadComplete += new EventHandler(Host_OnLoadComplete); //if(!_rebar.Created) _rebar.CreateControl(); } }
public RebarBandCollection( Rebar rebar ) { _rebar = rebar; }
public RebarBandCollection(Rebar rebar) { _rebar = rebar; }