public static void SetHeading(IProgressViewer viewer, string text) { try { if (viewer != null) viewer.SetHeading(text); } catch(Exception ex) { Trace.WriteLine(ex); } }
public static void SetHeading(IProgressViewer viewer, string text) { try { if (viewer != null) { viewer.SetHeading(text); } } catch (Exception ex) { Trace.WriteLine(ex); } }
/// <summary> /// Sets the progress viewer's heading /// </summary> /// <param name="viewer">The progress viewer to manipulate</param> /// <param name="text">The text to display</param> public static void SetHeading(IProgressViewer viewer, string text) { try { if (viewer != null) { Control control = viewer as Control; if (control != null) { if (control.InvokeRequired) { control.Invoke(new SetTextEventHandler(SetHeading), new object[] { viewer, text }); return; } } viewer.SetHeading(text); } } catch (Exception ex) { Log.WriteLine(ex); } }
/// <summary> /// Sets the progress viewer's heading /// </summary> /// <param name="viewer">The progress viewer to manipulate</param> /// <param name="text">The text to display</param> public static void SetHeading(IProgressViewer viewer, string text) { try { if (viewer != null) { Control control = viewer as Control; if (control != null) { if (control.InvokeRequired) { control.Invoke(new SetTextEventHandler(SetHeading), new object[] {viewer, text}); return; } } viewer.SetHeading(text); } } catch(Exception ex) { Log.WriteLine(ex); } }