// Manage footer message box public void ManageMessageResult(object sender, TaskEventArgs e) { switch (e.Status) { case TaskEventArgs.EventStatus.finish: MessageResult.HideControl(Convert.ToBoolean(lst_Details.Items.Count)); MessageResult.HideMessages(Convert.ToBoolean(lst_Details.Items.Count), null); break; case TaskEventArgs.EventStatus.init: MessageResult.HideControl(Convert.ToBoolean(lst_Details.Items.Count)); break; case TaskEventArgs.EventStatus.pause: MessageResult.HideControl(false); MessageResult.HideMessages(true, Sender["WmiClassName"]); break; case TaskEventArgs.EventStatus.next: MessageResult.HideControl(true); break; } }