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(); } }); }
public ScriptController(IScriptServices scriptServices) { _scriptServices = scriptServices; }
public void Open(IInjectionObjectServices objectServices, IScriptServices scriptServices, IMainServices mainServices, InjectionConfiguration configuration) => InjectionWindow.Open(objectServices, scriptServices, mainServices, configuration);
public void SetServices(IScriptServices scriptServices) => viewModel.SetServices(scriptServices);