/// <summary> /// 对比Token与本窗口Token是否相同 /// </summary> /// <param name="aToken"></param> /// <returns></returns> public bool EqualToken(DVRToken aToken) { if (aToken == null || Token == null) { return(false); } return(Token.TerminalId == aToken.TerminalId && Token.LogicChn == aToken.LogicChn); }
/// <summary> /// 设置设备参数 /// </summary> /// <param name="aToken"></param> /// <returns></returns> public void LinkToken(DVRToken aToken) { this.Token = aToken; if (aToken != null) { this.lblInfo.Text = aToken.ToString(); } else { this.lblInfo.Text = string.Empty; } }