/// <summary> /// Event Handler for SystemTrayNotifyIcon /// </summary> /// <param name="sender">object</param> /// <param name="e">SystemTrayNotificationEventArgs</param> protected void SystemTrayNotificationHandler(object sender, SystemTrayNotificationEventArgs e) { switch (e.State) { case SystemTrayNotificationEventType.Hiding: ShowInTaskbar = true; break; case SystemTrayNotificationEventType.Showing: ShowInTaskbar = false; break; case SystemTrayNotificationEventType.StartingAnimation: break; case SystemTrayNotificationEventType.StopingAnimation: break; case SystemTrayNotificationEventType.IconChanged: break; case SystemTrayNotificationEventType.Disposing: break; default: break; } }
/// <summary> /// Default Event Handler /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void SystemTrayNotificationHandler(object sender, SystemTrayNotificationEventArgs e) { // This event handler is not required here exactly // It just facilitates the programmer to save him/her from // exceptions if he/she don't provides his/her own EventHandler // function }