using AutoMapper;
using CapMachine.Core;
using CapMachine.Model;
using CapMachine.Wpf.Models;
using CapMachine.Wpf.Services;
using Masuit.Tools;
using Prism.Commands;
using Prism.Services.Dialogs;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace CapMachine.Wpf.ViewModels
{
public class DialogYAxisConfigViewModel : DialogViewModel
{
public DialogYAxisConfigViewModel(IFreeSql freeSql, IMapper mapper, MachineRtDataService machineRtDataService)
{
this.Title = "曲线Y轴配置";
FreeSql = freeSql;
this.Mapper = mapper;
MachineRtDataService = machineRtDataService;
}
///
/// FreeSql
///
public IFreeSql FreeSql { get; }
///
/// AutoMap映射
///
public IMapper Mapper { get; }
///
/// 数据服务
///
public MachineRtDataService MachineRtDataService { get; }
///
/// 选中的数据
///
public ChartYAxisDto CurSelectedItem { get; set; }
private ObservableCollection _ChartYAxisDtoItems;
///
/// 数据源控件 数据集合
///
public ObservableCollection ChartYAxisDtoItems
{
get { return _ChartYAxisDtoItems; }
set { _ChartYAxisDtoItems = value; RaisePropertyChanged(); }
}
private DelegateCommand