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

            url      = testCard.url;
            testID   = testCard.testID;
            isActive = testCard.isActive;
        }