Ejemplo n.º 1
0
 internal protected void SetBusyState(BusyStateEventArgs args)
 {
     if (BusyStateChanged != null)
     {
         BusyStateChanged(this, args);
     }
 }
		public void UpdateBusyState (BusyStateEventArgs args)
		{
			if (!args.IsBusy) {
				Hide ();
			} else {
				Show ();
			}
		}
Ejemplo n.º 3
0
		public void UpdateBusyState (BusyStateEventArgs args)
		{
			if (!args.IsBusy) {
				Hide ();
			} else {
				labelMethod.Text = args.Description;
				Show ();
			}
		}
		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 ();
			}
		}
Ejemplo n.º 5
0
		public virtual void OnBusyStateChanged (BusyStateEventArgs e)
		{
			EventHandler<BusyStateEventArgs> evnt = BusyStateChanged;
			if (evnt != null)
				evnt (this, e);
		}
Ejemplo n.º 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;
					}
				}
			});
		}
Ejemplo n.º 7
0
		internal protected void SetBusyState (BusyStateEventArgs args)
		{
			if (BusyStateChanged != null)
				BusyStateChanged (this, args);
		}
		public virtual void OnBusyStateChanged (BusyStateEventArgs e)
		{
			if (BusyStateChanged != null)
				BusyStateChanged (this, e);
		}
 public void LeaveBusyState(AsyncOperation oper)
 {
     BusyStateEventArgs args = new BusyStateEventArgs ();
     args.IsBusy = false;
     args.Description = oper.Description;
     if (BusyStateChanged != null)
         BusyStateChanged (this, args);
 }