/// <summary> /// UIの表示 /// </summary> /// <returns></returns> public bool LaunchUI(LaunchUiArgs args) { //実験管理ウィンドウ if (!args.ActivePluginWindowTypes.Contains(typeof(MainControl))) { var viewModel = new MainControlViewModel(this.Core); var control = new MainControl() { ViewModel = viewModel }; this.OpenWindowRequested?.Invoke(new OpenWindowRequestArgs() { Content = control, Title = "Main Control", WindowId = "MainControl", }); } return true; }
public bool LaunchPluginUI(IActivator plugin) { var args = new LaunchUiArgs(this.GetActivePluginWindowTypes()); return plugin.LaunchUI(args); }