mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-04-05 15:56:33 +08:00
添加画布信息视图
This commit is contained in:
@@ -15,25 +15,18 @@ namespace Serein.Workbench.ViewModels
|
||||
ServiceProvider = serviceProvider;
|
||||
}
|
||||
|
||||
//private IServiceProvider GetService()
|
||||
//{
|
||||
// var service = new ServiceCollection();
|
||||
// service.AddSingleton<MainViewModel>();
|
||||
// service.AddSingleton<MainMenuBarViewModel>();
|
||||
// service.AddSingleton<FlowWorkbenchViewModel>();
|
||||
// service.AddSingleton<BaseNodesViewModel>();
|
||||
// service.AddSingleton<FlowLibrarysViewModel>();
|
||||
// service.AddTransient<FlowLibraryMethodDetailssViewModel>();
|
||||
// return service.BuildServiceProvider();
|
||||
//}
|
||||
|
||||
|
||||
public MainViewModel MainViewModel => App.GetService<MainViewModel>() ?? throw new NotImplementedException();
|
||||
public MainMenuBarViewModel MainMenuBarViewModel => App.GetService<MainMenuBarViewModel>() ?? throw new NotImplementedException();
|
||||
public FlowWorkbenchViewModel FlowWorkbenchViewModel => App.GetService<FlowWorkbenchViewModel>() ?? throw new NotImplementedException();
|
||||
public BaseNodesViewModel BaseNodesViewModel => App.GetService<BaseNodesViewModel>() ?? throw new NotImplementedException();
|
||||
public FlowLibrarysViewModel FlowLibrarysViewModel => App.GetService<FlowLibrarysViewModel>() ?? throw new NotImplementedException();
|
||||
public FlowEditViewModel FlowEditViewModel => App.GetService<FlowEditViewModel>() ?? throw new NotImplementedException();
|
||||
|
||||
|
||||
|
||||
public FlowCanvasViewModel FlowCanvasViewModel => App.GetService<FlowCanvasViewModel>() ?? throw new NotImplementedException();
|
||||
public CanvasInfoViewModel CanvasNodeTreeViewModel => App.GetService<CanvasInfoViewModel>() ?? throw new NotImplementedException();
|
||||
|
||||
public IServiceProvider ServiceProvider { get; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user