Esempio n. 1
0
        public bool ShowData(Att att)
        {
            _Att = att;

            TbData.Focus();
            TbData.SelectAll();
            return true;
        }
Esempio n. 2
0
 public bool ShowData(Att att)
 {
     _Att = att;
     if (_Att != null)
     {
         _Label.Text = _Att.Name;
         TbData.Text = _Att.Data;
     }
     return true;
 }
Esempio n. 3
0
        public bool ShowData(Att att)
        {
            _Att = att;

            if (string.IsNullOrEmpty(_Att.Name))
            {
                TbName.Focus();
                TbName.SelectAll();
            }
            else
            {
                TbData.Focus();
                TbData.SelectAll();
            }
            return true;
        }
Esempio n. 4
0
        /// <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;
        }
Esempio n. 5
0
 public bool ShowData(Att att)
 {
     return true;
 }