コード例 #1
0
		public static void SetHeading(IProgressViewer viewer, string text)
		{
			try
			{
				if (viewer != null)
					viewer.SetHeading(text);
			}
			catch(Exception ex)
			{
				Trace.WriteLine(ex);
			}
		}
コード例 #2
0
 public static void SetHeading(IProgressViewer viewer, string text)
 {
     try
     {
         if (viewer != null)
         {
             viewer.SetHeading(text);
         }
     }
     catch (Exception ex)
     {
         Trace.WriteLine(ex);
     }
 }
コード例 #3
0
 /// <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);
     }
 }
コード例 #4
0
		/// <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);
			}
		}