using BPASmart.VariableManager.Enums; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace BPASmart.VariableManager.Models { public class Siemens : ICommunicationDevice { //public Siemens() //{ // Init(); //} /// /// 显示/隐藏设置 /// //public Visibility SiemensVisible { get; set; } = Visibility.Collapsed; /// /// IP地址 /// public string IP { get; set; } = "192.168.0.1"; /// /// 插槽号 /// public int Slot { get; set; } = 0; /// /// 机架号 /// public int Rack { get; set; } = 0; /// /// 端口号,默认 102 /// public int PortNum { get; set; } = 102; /// /// PLC 类型 /// public string PlcType { get; set; } //public ObservableCollection PlcTypes { get; set; } = new ObservableCollection(); //private void Init() //{ // PlcTypes.Clear(); // foreach (var item in Enum.GetNames(typeof(ESiemensPlcType))) // { // PlcTypes.Add(item.Substring(1)); // } //} } }