refactor: 将Framework库和RT、UI放在同一个解决方案中。

This commit is contained in:
SL
2026-06-01 17:48:28 +08:00
parent 1948f4290d
commit b73d39a6b1
4331 changed files with 506148 additions and 49363 deletions
@@ -0,0 +1,74 @@
using MECF.Framework.Simulator.Core.Commons;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MECF.Framework.Simulator.Core.Temperature
{
class OmronTempViewModel
: SerialPortDeviceViewModel
{
private OmronTemp _reader;
public string ResultValue { get; set; }
public bool IsSetting
{
get
{
return _reader.IsSetting;
}
set
{
_reader.IsSetting = value;
}
}
public bool IsActual
{
get
{
return _reader.IsActual;
}
set
{
_reader.IsActual = value;
}
}
public int ActualTemp
{
get
{
return _reader.ActualTemp;
}
set
{
_reader.ActualTemp = value;
}
}
public int SettingTemp
{
get
{
return _reader.SettingTemp;
}
set
{
_reader.SettingTemp = value;
}
}
public OmronTempViewModel(string port) : base("OmronTempViewModel")
{
_reader = new OmronTemp(port);
Init(_reader, true);
_reader.receiveMsg += _reader_receiveMsg;
}
private void _reader_receiveMsg(string obj)
{
ResultValue = obj;
}
}
}