using Prism.Commands;
using Prism.Events;
using Prism.Ioc;
using Prism.Mvvm;
using Prism.Regions;
using Prism.Services.Dialogs;
using SixLabors.Fonts.Unicode;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Threading.Tasks;
using System.Windows;
using Team.FFFeederService.Interfaces;
using TeamAAS_VP;
using TeamAAS_VP.Core;
using TeamAAS_VP.Events;
using TeamAAS_VP.Interfaces;
using TeamAAS_VP.Models;
using TeamAAS_VP.Models.Calibration;
using TeamAAS_VP.Services;
using TeamAAS_VP.ViewModels.Product;
namespace TeamAAS_VP.ViewModels.Calibration
{
public class CalibrationTeachCenterPointViewModel : BindableBase, IConfirmNavigationRequest
{
IRegionManager _regionManager;
IRegionNavigationService _regionNavigationService;
IContainerProvider _container;
IDialogService _dialogService;
IEventAggregator _eventAggregator;
IConfigService _configService;
IRobotService _robotService;
ICameraService _cameraService;
IFeederService _feederService;
ISystemDatabaseService _systemDatabaseService;
#region 属性
private CalibrationInfo _SelectCalibration;
public CalibrationInfo SelectCalibration
{
get { return _SelectCalibration; }
set { SetProperty(ref _SelectCalibration, value); }
}
private bool _IsShowTechHome = false;
public bool IsShowTechHome
{
get { return _IsShowTechHome; }
set { SetProperty(ref _IsShowTechHome, value); }
}
private bool _IsShowTechP0ModeSelect = true;
///
/// 是否显示P0模式选择
///
public bool IsShowTechP0ModeSelect
{
get { return _IsShowTechP0ModeSelect; }
set { SetProperty(ref _IsShowTechP0ModeSelect, value); }
}
public Management management { get; set; }
private IRobot _Robot;
public IRobot Robot
{
get { return _Robot; }
set { SetProperty(ref _Robot, value); }
}
#endregion
#region 命令
private DelegateCommand _LoadedCommand;
public DelegateCommand LoadedCommand =>
_LoadedCommand ?? (_LoadedCommand = new DelegateCommand(ExecuteLoadedCommand));
private DelegateCommand _NextCommand;
public DelegateCommand NextCommand =>
_NextCommand ?? (_NextCommand = new DelegateCommand(ExecuteNextCommand));
private DelegateCommand _BackCommand;
public DelegateCommand BackCommand =>
_BackCommand ?? (_BackCommand = new DelegateCommand(ExecuteBackCommand));
private DelegateCommand _TechCenterCommand;
public DelegateCommand TechCenterCommand =>
_TechCenterCommand ?? (_TechCenterCommand = new DelegateCommand(ExecuteTechCenterCommand));
private DelegateCommand _TechHomeCommand;
public DelegateCommand TechHomeCommand =>
_TechHomeCommand ?? (_TechHomeCommand = new DelegateCommand(ExecuteTechHomeCommand));
private DelegateCommand