public override void Assign(RepositoryItem item) { BeginUpdate(); try { base.Assign(item); RepositoryItemMyLookUpEdit source = item as RepositoryItemMyLookUpEdit; if (source == null) { return; } Events.AddHandler(getAutoCompleteList, source.Events[getAutoCompleteList]); } finally { EndUpdate(); } }
static MyLookUpEdit() { RepositoryItemMyLookUpEdit.Register(); }