コード例 #1
0
 public static void SetMargueeMoving(IProgressViewer viewer, bool moving, bool reset)
 {
     try
     {
         if (viewer != null)
         {
             viewer.SetMarqueeMoving(moving, reset);
         }
     }
     catch (Exception ex)
     {
         Trace.WriteLine(ex);
     }
 }
コード例 #2
0
 /// <summary>
 /// Sets the progress viewer's marquee state
 /// </summary>
 /// <param name="viewer">The progress viewer to manipulate</param>
 /// <param name="moving">A flag that determines if the marquee is moving or stopped</param>
 /// <param name="reset">A flag that determines if the marquee should be reset</param>
 public static void SetMarqueeMoving(IProgressViewer viewer, bool moving, bool reset)
 {
     try
     {
         if (viewer != null)
         {
             Control control = viewer as Control;
             if (control != null)
             {
                 if (control.InvokeRequired)
                 {
                     control.Invoke(new SetMarqueeMovingEventHandler(SetMarqueeMoving), new object[] { viewer, moving, reset });
                     return;
                 }
             }
             viewer.SetMarqueeMoving(moving, reset);
         }
     }
     catch (Exception ex)
     {
         Log.WriteLine(ex);
     }
 }
コード例 #3
0
		public static void SetMargueeMoving(IProgressViewer viewer, bool moving, bool reset)
		{
			try
			{
				if (viewer != null)
					viewer.SetMarqueeMoving(moving, reset);
			}
			catch(Exception ex)
			{
				Trace.WriteLine(ex);
			}
		}
コード例 #4
0
		/// <summary>
		/// Sets the progress viewer's marquee state
		/// </summary>
		/// <param name="viewer">The progress viewer to manipulate</param>
		/// <param name="moving">A flag that determines if the marquee is moving or stopped</param>
		/// <param name="reset">A flag that determines if the marquee should be reset</param>
		public static void SetMarqueeMoving(IProgressViewer viewer, bool moving, bool reset)
		{
			try
			{
				if (viewer != null)
				{
					Control control = viewer as Control;
					if (control != null)
					{
						if (control.InvokeRequired)
						{
							control.Invoke(new SetMarqueeMovingEventHandler(SetMarqueeMoving), new object[] {viewer, moving, reset});
							return;
						}
					}					
					viewer.SetMarqueeMoving(moving, reset);
				}
			}
			catch(Exception ex)
			{
				Log.WriteLine(ex);
			}
		}