添加 MX-PD-盘古 项目文件
将 MX-PD-盘古 - new 目录下的所有文件添加到主仓库
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
using MainShell.Common;
|
||||
using MainShell.Models;
|
||||
using Stylet;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace MainShell.ToolBox.ViewModel
|
||||
{
|
||||
public class ToolBoxWindowViewModel : Screen
|
||||
{
|
||||
public ObservableCollection<ToolNavItem> Tools { get; }
|
||||
private ToolNavItem _selectedTool;
|
||||
public ToolNavItem SelectedTool
|
||||
{
|
||||
get { return _selectedTool; }
|
||||
set { SetAndNotify(ref _selectedTool, value); }
|
||||
}
|
||||
|
||||
public ToolBoxWindowViewModel()
|
||||
{
|
||||
Tools = new ObservableCollection<ToolNavItem>();
|
||||
|
||||
// 添加工具
|
||||
Tools.Add(new ToolNavItem()
|
||||
{
|
||||
Subtitle = "光源设置",
|
||||
Title = "定位相机",
|
||||
Icon = "\ue610",
|
||||
Foreground=CommonUti.BrushFromString("#EEFA0A"),
|
||||
ContentViewModel = IoC.Get<MainShell.ToolBox.ViewModel.UpCamLightViewModel>()
|
||||
});
|
||||
Tools.Add(new ToolNavItem()
|
||||
{
|
||||
Subtitle = "光源设置",
|
||||
Title = "下相机",
|
||||
Icon = "\ue610",
|
||||
Foreground = CommonUti.BrushFromString("#EEFA0A"),
|
||||
ContentViewModel = IoC.Get<MainShell.ToolBox.ViewModel.DownCamLightViewModel>()
|
||||
});
|
||||
Tools.Add(new ToolNavItem()
|
||||
{
|
||||
Subtitle = "光源设置",
|
||||
Title = "Map相机",
|
||||
Icon = "\ue610",
|
||||
Foreground = CommonUti.BrushFromString("#EEFA0A"),
|
||||
ContentViewModel = IoC.Get<MainShell.ToolBox.ViewModel.MapCamLightViewModel>()
|
||||
});
|
||||
Tools.Add(new ToolNavItem()
|
||||
{
|
||||
Subtitle = "事件模拟",
|
||||
Title = "显示测试",
|
||||
Icon = "\ue6d7",
|
||||
Foreground = CommonUti.BrushFromString("#4F9DFF"),
|
||||
ContentViewModel = IoC.Get<MainShell.ToolBox.ViewModel.VisionDisplayTestViewModel>()
|
||||
});
|
||||
|
||||
if (Tools.Count > 0)
|
||||
{
|
||||
SelectedTool = Tools[0];
|
||||
}
|
||||
}
|
||||
|
||||
protected override void OnViewLoaded()
|
||||
{
|
||||
base.OnViewLoaded();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user