internal static object LaunchOpProgress(I_AsyncSig Objet, Func <object> method, string title = null) { return(Application.Current.Dispatcher?.Invoke ( () => { EphemProgress ephem = new EphemProgress(Objet); TaskLauncher launcher = new TaskLauncher() { AutoCloseWindow = true, LoopDelay = 50, ProgressIHM = new DxProgressB1(ephem), MethodToRun = method, }; if (launcher.Launch(Objet) == true) { return true; } throw new OperationCanceledException("Interrupted by user"); } )); }
public Maw(I_AsyncSig objet) { RerouteSignal(objet); }