public static void Start() { Log.Write("Start JobProgress...", typeof(JobProgress), "Start", Log.LogType.DEBUG); e = new EventArgsStatusChange("Starting"); lastMessageTime = DateTime.Now; JobProgress.form.ShowFormThreadCounter(); }
void isStatus_StatusChange(object sender, EventArgsStatusChange e) { tssStatus.Text = e.Message; }
private static void OnStatusChange(EventArgsStatusChange e) { if (JobProgress.form != null) { if (JobProgress.form.StatusChange != null) { JobProgress.form.StatusChange(JobProgress.form, e); } } Application.DoEvents(); }