public void Update(MinerSign minerSign, out bool isChanged) { #region this.LoginName = minerSign.LoginName; isChanged = false; if (!isChanged) { isChanged = this.ClientId != minerSign.ClientId; } this.ClientId = minerSign.ClientId; if (!isChanged) { isChanged = this.OuterUserId != minerSign.OuterUserId; } this.OuterUserId = minerSign.OuterUserId; if (!isChanged) { isChanged = this.AESPassword != minerSign.AESPassword; } this.AESPassword = minerSign.AESPassword; if (!isChanged) { isChanged = this.AESPasswordOn != minerSign.AESPasswordOn; } this.AESPasswordOn = minerSign.AESPasswordOn; #endregion }
public void Update(MinerSign minerSign) { this.ClientId = minerSign.ClientId; this.LoginName = minerSign.LoginName; this.OuterUserId = minerSign.OuterUserId; this.AESPassword = minerSign.AESPassword; this.AESPasswordOn = minerSign.AESPasswordOn; }