internal protected void SetBusyState(BusyStateEventArgs args) { if (BusyStateChanged != null) { BusyStateChanged(this, args); } }
public void UpdateBusyState (BusyStateEventArgs args) { if (!args.IsBusy) { Hide (); } else { Show (); } }
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 (); } }
public virtual void OnBusyStateChanged (BusyStateEventArgs e) { EventHandler<BusyStateEventArgs> evnt = BusyStateChanged; if (evnt != null) evnt (this, e); }
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; } } }); }
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); }