using Stylet;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MaxwellFramework.Core.Interfaces;
using MwFramework.Device;
using MwFramework.ManagerService;
using StyletIoC;

namespace MainShell.DeviceMaintance.ViewModel
{
    public class IOMonitorViewModel:Screen,IPage
    {
        private DeviceIoViewModel _deviceIoViewModel;
        [Inject]
        public DeviceIoViewModel DeviceIoViewModel
        {
            get { return _deviceIoViewModel; }
            set { _deviceIoViewModel = value; }
        }

        //private IDIO ioprop;
        //public IDIO IOProp
        //{
        //    get { return ioprop; }
        //    set
        //    {
        //        ioprop = value;
        //        OnPropertyChanged("IOProp");
        //    }
        //}

        //public IOMonitorViewModel(IDeviceManager manager)
        //{
        //    IDeviceList dlist = (IDeviceList)manager;
        //    IOProp = dlist.GetDevice<IDIO>("PLCIO");
        //}
    }
}
