提交了仪表的模型
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using CapMachine.Core;
|
||||
using CapMachine.Core.IService;
|
||||
using CapMachine.Wpf.Models;
|
||||
using CapMachine.Wpf.Services;
|
||||
using Prism.Commands;
|
||||
using Prism.Regions;
|
||||
|
||||
@@ -8,15 +9,16 @@ namespace CapMachine.Wpf.ViewModels
|
||||
{
|
||||
public class MainViewModel : NavigationViewModel
|
||||
{
|
||||
public MainViewModel(IRegionManager region, INavigationMenuService menuService)
|
||||
public MainViewModel(IRegionManager region, INavigationMenuService menuService, SysService sysService)
|
||||
{
|
||||
this.region = region;
|
||||
MenuService = menuService;
|
||||
SysService = sysService;
|
||||
NavigateCommand = new DelegateCommand<NavigationItem>(Navigate);
|
||||
}
|
||||
|
||||
public INavigationMenuService MenuService { get; }
|
||||
|
||||
public SysService SysService { get; }
|
||||
public DelegateCommand<NavigationItem> NavigateCommand { get; private set; }
|
||||
|
||||
private int selectedIndex = -1;
|
||||
@@ -46,7 +48,7 @@ namespace CapMachine.Wpf.ViewModels
|
||||
{
|
||||
if (item == null) return;
|
||||
|
||||
if (item.Name.Equals("全部"))
|
||||
if (item.Name.Equals("系统"))
|
||||
{
|
||||
IsTopDrawerOpen = true;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user