/// <summary> /// this event is triggert by an click on the windows minibar icon /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void nIcon_Click(object sender, EventArgs e) { if (infoWindow == null) { infoWindow = new Views.InfoWindow(); infoWindow.chageBGinfoLabel = BGnotifString; infoWindow.chageBGinfoLabelBGcolor = BGnotifcolor; infoWindow.RefrechBGPictureEvent -= InfoWindow_RefrechBGPictureEvent; infoWindow.RefrechBGPictureEvent += InfoWindow_RefrechBGPictureEvent; infoWindow.Closed -= InfoWindow_Closed; infoWindow.Closed += InfoWindow_Closed; infoWindow.Show(); } }
/// <summary> /// this event is called after the info window was closed /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void InfoWindow_Closed(object sender, EventArgs e) { infoWindow = null; }