public bool ShowData(Att att) { _Att = att; TbData.Focus(); TbData.SelectAll(); return true; }
public bool ShowData(Att att) { _Att = att; if (_Att != null) { _Label.Text = _Att.Name; TbData.Text = _Att.Data; } return true; }
public bool ShowData(Att att) { _Att = att; if (string.IsNullOrEmpty(_Att.Name)) { TbName.Focus(); TbName.SelectAll(); } else { TbData.Focus(); TbData.SelectAll(); } return true; }
/// <summary> /// 数据展示 /// </summary> /// <param name="att"></param> /// <returns></returns> public bool ShowData(Att att) { _GuidAtt = (GuidAtt)att; cbName.ItemsSource = _SafeModel.LibKey; string libId = _GuidAtt.GetSpec(GuidAtt.SPEC_GUID_TPLT); LibHeader lib; foreach (var item in cbName.Items) { lib = item as LibHeader; if (lib.Id == libId) { cbName.SelectedItem = item; } } cbName.Focus(); return true; }
public bool ShowData(Att att) { return true; }