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