예제 #1
0
 protected override void HandleClosed()
 {
     lock (injectionWindowLock)
     {
         injectionWindow = null;
     }
 }
예제 #2
0
        public static void Open(IInjectionObjectServices objectServices, IScriptServices scriptServices, IMainServices mainServices, InjectionConfiguration configuration)
        {
            Dispatcher.UIThread.InvokeAsync(() =>
            {
                lock (injectionWindowLock)
                {
                    if (injectionWindow == null)
                    {
                        injectionWindow = new InjectionWindow(configuration);
                    }

                    injectionWindow.Objects.SetServices(objectServices);
                    injectionWindow.Scripts.SetServices(scriptServices);
                    injectionWindow.Main.ViewModel.SetServices(injectionWindow.configuration, mainServices);

                    injectionWindow.Show();
                }
            });
        }
예제 #3
0
 public void Open(IInjectionObjectServices objectServices, IScriptServices scriptServices, IMainServices mainServices, InjectionConfiguration configuration)
 => InjectionWindow.Open(objectServices, scriptServices, mainServices, configuration);
예제 #4
0
 public void Open(InjectionRuntime runtime, InjectionApiUO injectionApi, Legacy infusionApi, InjectionHost host)
 => InjectionWindow.Open(runtime, injectionApi, infusionApi, host);