Beispiel #1
0
 protected override void Activate()
 {
     try
     {
         if (OnActivate != null)
         {
             OnActivate.Execute(this, new EventParams());
         }
     }
     catch (Exception exception)
     {
         this.HandleException(exception);
     }
     UpdateText();
     base.Activate();
 }
Beispiel #2
0
 protected override void Activate()
 {
     base.Activate();
     UpdateIconImage();
     UpdateBackgroundImage();
     try
     {
         if (OnActivate != null)
         {
             OnActivate.Execute();
         }
     }
     catch (Exception exception)
     {
         WebSession.ErrorList.Add(exception);
     }
 }