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; } } }); }
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.GetIcon("md-execute-debug", Gtk.IconSize.Menu)); busyStatusIcon.SetAlertMode(100); busyStatusIcon.ToolTip = GettextCatalog.GetString("The debugger runtime is not responding. You can wait for it to recover, or stop debugging."); busyStatusIcon.Clicked += delegate { MessageService.PlaceDialog(busyDialog, MessageService.RootWindow); }; } } else { if (busyStatusIcon != null) { busyStatusIcon.Dispose(); busyStatusIcon = null; } } }); }
static async void OnBusyStateChanged(object s, BusyStateEventArgs args) { isBusy = args.IsBusy; await Runtime.RunInMainThread(delegate { busyEvaluator.UpdateBusyState(args); if (args.IsBusy) { if (busyStatusIcon == null) { busyStatusIcon = IdeApp.Workbench.StatusBar.ShowStatusIcon(ImageService.GetIcon("md-execute-debug", Gtk.IconSize.Menu)); busyStatusIcon.SetAlertMode(100); busyStatusIcon.ToolTip = GettextCatalog.GetString("The debugger runtime is not responding. You can wait for it to recover, or stop debugging."); busyStatusIcon.Clicked += OnBusyStatusIconClicked; } } else { if (busyStatusIcon != null) { busyStatusIcon.Clicked -= OnBusyStatusIconClicked; busyStatusIcon.Dispose(); busyStatusIcon = null; } } }); }
public virtual void OnBusyStateChanged(BusyStateEventArgs e) { if (BusyStateChanged != null) { BusyStateChanged(this, e); } }
private void AuthenticationManagerOnBusyStateChanged(object sender, BusyStateEventArgs busyStateEventArgs) { if (IsBusy == busyStateEventArgs.IsBusy) { return; } IsBusy = busyStateEventArgs.IsBusy; }
public virtual void OnBusyStateChanged(BusyStateEventArgs e) { EventHandler <BusyStateEventArgs> evnt = BusyStateChanged; if (evnt != null) { evnt(this, e); } }
public void LeaveBusyState(AsyncOperation oper) { var args = new BusyStateEventArgs { IsBusy = false, Description = oper.Description, EvaluationContext = oper.EvaluationContext }; BusyStateChanged?.Invoke(this, args); }
public void LeaveBusyState(AsyncOperation oper) { BusyStateEventArgs args = new BusyStateEventArgs(); args.IsBusy = false; args.Description = oper.Description; 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(); } }
private void AuthManagerOnBusyStateChanged(object sender, BusyStateEventArgs e) { OnBusyStateChanged(e.IsBusy); }