Example #1
0
		public static void SetTitle(string text)
		{
			if (_instance == null)
				_instance = new FormStart();
			_instance.BeginInvoke(new MethodInvoker(() =>
			{
				_instance.laTitle.Text = text;
				SetDetails(String.Empty);
				Application.DoEvents();
			}));
		}
 public static void SetTitle(string text)
 {
     if (_instance == null)
     {
         _instance = new FormStart();
     }
     _instance.BeginInvoke(new MethodInvoker(() =>
     {
         _instance.laTitle.Text = text;
         SetDetails(String.Empty);
         Application.DoEvents();
     }));
 }
Example #3
0
		public static void ShowProgress()
		{
			if (_instance == null)
				_instance = new FormStart();
			if (_instance.InvokeRequired)
				_instance.BeginInvoke(new MethodInvoker(() =>
				{
					_instance.Show();
					Application.DoEvents();
				}));
			else
				_instance.Show();
			_queueCount++;
			Application.DoEvents();
		}
 public static void SetDetails(string text)
 {
     if (_instance == null)
     {
         _instance = new FormStart();
     }
     _instance.BeginInvoke(new MethodInvoker(() =>
     {
         _instance.laDetails.Text = text;
         if (!String.IsNullOrEmpty(text))
         {
             _instance.laDetails.BringToFront();
         }
         else
         {
             _instance.laDetails.SendToBack();
         }
         Application.DoEvents();
     }));
 }
 public static void ShowProgress()
 {
     if (_instance == null)
     {
         _instance = new FormStart();
     }
     if (_instance.InvokeRequired)
     {
         _instance.BeginInvoke(new MethodInvoker(() =>
         {
             _instance.Show();
             Application.DoEvents();
         }));
     }
     else
     {
         _instance.Show();
     }
     _queueCount++;
     Application.DoEvents();
 }
Example #6
0
		public static void SetDetails(string text)
		{
			if (_instance == null)
				_instance = new FormStart();
			_instance.BeginInvoke(new MethodInvoker(() =>
			{
				_instance.laDetails.Text = text;
				if (!String.IsNullOrEmpty(text))
					_instance.laDetails.BringToFront();
				else
					_instance.laDetails.SendToBack();
				Application.DoEvents();
			}));
		}
Example #7
0
		public static void Destroy()
		{
			_instance.Dispose();
			_instance = null;
		}
 public static void Destroy()
 {
     _instance.Dispose();
     _instance = null;
 }