| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- using Prism.Mvvm;
- using System;
- using System.Collections.Generic;
- using System.IO.Ports;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace TeamAAS_VP.Models
- {
- public class ScanRs232ConfigModel : BindableBase
- {
- private string _PortName = "COM9";
- public string PortName
- {
- get { return _PortName; }
- set { SetProperty(ref _PortName, value); }
- }
- private int _BaudRate = 9600;
- public int BaudRate
- {
- get { return _BaudRate; }
- set { SetProperty(ref _BaudRate, value); }
- }
- private Parity _Parity = Parity.None;
- public Parity Parity
- {
- get { return _Parity; }
- set { SetProperty(ref _Parity, value); }
- }
- private StopBits _StopBits = StopBits.One;
- public StopBits StopBits
- {
- get { return _StopBits; }
- set { SetProperty(ref _StopBits, value); }
- }
- private int _DataBits = 8;
- public int DataBits
- {
- get { return _DataBits; }
- set { SetProperty(ref _DataBits, value); }
- }
- }
- }
|