public void SubscribeToEvents(ITestCardItemSubscriber subscriber) { AuthorClick += subscriber.AuthorClickHandler; FavouriteClick += subscriber.FavouriteClickHandler; DeleteClick += subscriber.DeleteClickHandler; EditClick += subscriber.EditClickHandler; StatisticsClick += subscriber.StatisticsClickHandler; HeaderClick += subscriber.HeaderClickHandler; }
public TestCardItemUC(TestCard testCard, ITestCardItemSubscriber subsciber) { InitializeComponent(); Init(testCard); SubscribeToEvents(subsciber); url = testCard.url; testID = testCard.testID; isActive = testCard.isActive; }