コード例 #1
0
 internal protected void SetBusyState(BusyStateEventArgs args)
 {
     if (BusyStateChanged != null)
     {
         BusyStateChanged(this, args);
     }
 }
コード例 #2
0
		public void UpdateBusyState (BusyStateEventArgs args)
		{
			if (!args.IsBusy) {
				Hide ();
			} else {
				Show ();
			}
		}
コード例 #3
0
		public void UpdateBusyState (BusyStateEventArgs args)
		{
			if (!args.IsBusy) {
				Hide ();
			} else {
				labelMethod.Text = args.Description;
				Show ();
			}
		}
コード例 #4
0
		public void UpdateBusyState (BusyStateEventArgs args)
		{
			if (!args.IsBusy) {
				if (Dialog != null) {
					Dialog.Destroy ();
					Dialog.Dispose ();
					Dialog = null;
				}
			} else {
				if (Dialog == null)
					Dialog = new BusyEvaluatorDialog ();
				
				Dialog.Show ();
			}
		}
コード例 #5
0
		public virtual void OnBusyStateChanged (BusyStateEventArgs e)
		{
			EventHandler<BusyStateEventArgs> evnt = BusyStateChanged;
			if (evnt != null)
				evnt (this, e);
		}
コード例 #6
0
		static void OnBusyStateChanged (object s, BusyStateEventArgs args)
		{
			isBusy = args.IsBusy;
			DispatchService.GuiDispatch (delegate {
				busyDialog.UpdateBusyState (args);
				if (args.IsBusy) {
					if (busyStatusIcon == null) {
						busyStatusIcon = IdeApp.Workbench.StatusBar.ShowStatusIcon (ImageService.GetPixbuf ("md-execute-debug", Gtk.IconSize.Menu));
						busyStatusIcon.SetAlertMode (100);
						busyStatusIcon.ToolTip = GettextCatalog.GetString ("The Debugger is waiting for an expression evaluation to finish.");
						busyStatusIcon.EventBox.ButtonPressEvent += delegate {
							busyDialog.Show ();
						};
					}
				} else {
					if (busyStatusIcon != null) {
						busyStatusIcon.Dispose ();
						busyStatusIcon = null;
					}
				}
			});
		}
コード例 #7
0
		internal protected void SetBusyState (BusyStateEventArgs args)
		{
			if (BusyStateChanged != null)
				BusyStateChanged (this, args);
		}
コード例 #8
0
		public virtual void OnBusyStateChanged (BusyStateEventArgs e)
		{
			if (BusyStateChanged != null)
				BusyStateChanged (this, e);
		}
コード例 #9
0
 public void LeaveBusyState(AsyncOperation oper)
 {
     BusyStateEventArgs args = new BusyStateEventArgs ();
     args.IsBusy = false;
     args.Description = oper.Description;
     if (BusyStateChanged != null)
         BusyStateChanged (this, args);
 }