예제 #1
0
        public static void ShowDialog(string text)
        {
            if (dlg == null)
            {
                dlg = new WaitDialog();
            }

            if (text == null)
            {
                dlg.label.Markup = AddinCatalog.GetString("Please Wait");
            }
            else
            {
                dlg.label.Markup = text;
            }

            dlg.ShowAll();
            if (!isRunning)
            {
                isRunning = true;
                ThreadPool.QueueUserWorkItem(new WaitCallback(ProgressUpdate));
            }
            else
            {
                dlg.Present();
            }
        }
예제 #2
0
        public static void HideDialog()
        {
            if (dlg == null)
            {
                return;
            }

            isRunning = false;
            dlg.Destroy();
            dlg = null;
        }
예제 #3
0
		public static void ShowDialog (string text)
		{
			if (dlg == null)
				dlg = new WaitDialog ();
			
			if (text == null)
				dlg.label.Markup = GettextCatalog.GetString ("Please Wait");
			else
				dlg.label.Markup = text;

			dlg.ShowAll ();
			if (!isRunning) {
				isRunning = true;
				ThreadPool.QueueUserWorkItem (new WaitCallback (ProgressUpdate));
			} else {
				dlg.Present ();
			}
		}
예제 #4
0
		public static void HideDialog ()
		{
			if (dlg == null)
				return;
			
			isRunning = false;
			dlg.Destroy ();
			dlg = null;
		}