using GalaSoft.MvvmLight; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Muchinfo.MTPClient.Data { /// /// 链路状态 /// public class LinkState : ViewModelBase { /// /// 链路实体 /// public LinkerEntity LinkerEntity { get; set; } /// /// 服务名称 /// public string Name { get; set; } /// /// ip地址 /// public string Ip { get; set; } /// /// 端口 /// public int Port { get; set; } private bool _isEnable = false; /// /// 是否可用 /// public bool IsEnable { get { return _isEnable; } set { Set(() => IsEnable, ref _isEnable, value); } } /// /// /// public string IsEnableString { get { return IsEnable ? "√" : "×"; } } } }