internal ChannelAliasModel GetAlias() { var res = new ChannelAliasModel(); if (!this.tbx_Alias.Text.Trim().IsNullOrEmpity()) { res.Alias = this.tbx_Alias.Text; } else { res.Alias = this._Data.Alias; } res.ChannelName = this._Data.ChannelName; return res; }
private void UpdateUI(ChannelAliasModel _Data) { if (_Data == null) { _Data = new ChannelAliasModel(); } else { this.lbl_ChannelName.Text = _Data.ChannelName; this.tbx_Alias.Text = _Data.Alias; if (_Data.Alias.IsNullOrEmpity()) { this.tbx_Alias.Text = _Data.Alias; } } }