public RepositoryItemPopupContainerEditCustomButton() : base() { protShowCustomButton = true; protButtonsForPopup = new CustomButtonCollection(); protButtonsForPopup.OnCollectionChanged += ButtonsCollections_OnCollectionChanged; }
public override void Assign(RepositoryItem item) { base.Assign(item); RepositoryItemPopupContainerEditCustomButton currentRepository = (item as RepositoryItemPopupContainerEditCustomButton); ShowCustomButton = currentRepository.ShowCustomButton; protButtonsForPopup = currentRepository.protButtonsForPopup; Events.AddHandler(CustomButtonClick, currentRepository.Events[CustomButtonClick]); }