public static void FireStatus(object sender, StatusEventHandler eventHandler, string str, System.Drawing.Color c) { //StatusEventHandler handler = eventHandler; if (eventHandler != null) { StatusEventArgs args = new StatusEventArgs(); args.Text = str; args.TextColor = c; eventHandler(sender, args); } }
// Affiche les events dans le status barre void h_statusInfo(object sender, StatusEventArgs e) { this.status_event_label.Text = e.Text.ToString(); this.status_event_label.ForeColor = e.TextColor; // active le timer pour effacer le status //this.timer1.Enabled = false; }