创造我自己的习惯
ParentControlDesigner
,我的
public override void Initialize( IComponent component )
ISelectionService service = (ISelectionService)this.GetService( typeof( ISelectionService ) );
if ( service != null )
service.SelectionChanged += new EventHandler( this.OnSelectionChanged );
IComponentChangeService service2 = (IComponentChangeService)this.GetService( typeof( IComponentChangeService ) );
if ( service2 != null )
service2.ComponentChanged += new ComponentChangedEventHandler( this.OnComponentChanged );
ISelectionService
IComponentChangeService
. 我想看看他们是如何建立和可能引用。用谷歌搜索
,我得到了一个与定义或
Initialization
实现,但没有指向实际实现的类的链接
.