| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- using Prism.Mvvm;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace TeamAAS_VP.Models
- {
- public class BgModbusTcp : BindableBase
- {
- private string _IP = "127.0.0.1";
- /// <summary>
- /// 端口号
- /// </summary>
- public string IP
- {
- get { return _IP; }
- set { SetProperty(ref _IP, value); }
- }
- private int _Port = 502;
- /// <summary>
- /// 端口号
- /// </summary>
- public int Port
- {
- get { return _Port; }
- set { SetProperty(ref _Port, value); }
- }
- private byte _SlaveID=1;
- public byte SlaveID
- {
- get { return _SlaveID; }
- set { SetProperty(ref _SlaveID, value); ; }
- }
- private bool _IsEnabled=false;
- public bool IsEnabled
- {
- get { return _IsEnabled; }
- set { SetProperty(ref _IsEnabled, value); ; }
- }
- }
- }
|