1 Star 0 Fork 66

hllxml/OpenCVSharpHelper

forked from 易极/OpenCVSharpHelper 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CameraViewModel.cs 1.20 KB
一键复制 编辑 原始数据 按行查看 历史
易极 提交于 2021-08-27 13:40 +08:00 . 添加项目文件。
using Prism.Ioc;
using Prism.Mvvm;
using OpencvsharpModule.Models;
using ModuleCore.Mvvm;
using Prism.Regions;
using OpencvsharpModule.Views;
using Prism.Commands;
using Prism.Services.Dialogs;
namespace OpencvsharpModule.ViewModels
{
public class CameraViewModel : RegionViewModelBase
{
public CameraModel Model { get; set; }
public CameraViewModel(IDialogService dialogService, IContainerExtension container, IRegionManager regionManager):base(regionManager)
{
Model = container.Resolve<CameraModel>();
_dialogService = dialogService;
}
private readonly IDialogService _dialogService;
private DelegateCommand _CalibrateCamera;
public DelegateCommand CalibrateCamera =>
_CalibrateCamera ??= new DelegateCommand(ExecuteCalibrate);
private void ExecuteCalibrate()
{
_dialogService.Show("CalibrateView", new DialogParameters($"message={"message:QQ123211521"}"), r =>
{
if (r.Result == ButtonResult.Yes)
{
}
if (r.Result == ButtonResult.Retry)
{
}
});
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/hllxml/opencvsharphelper.git
git@gitee.com:hllxml/opencvsharphelper.git
hllxml
opencvsharphelper
OpenCVSharpHelper
master

搜索帮助