Beispiel #1
0
 private void SetValues()
 {
     TbDesignation.Text       = _intellectualEntity.Designation;
     TbDesignationPrefix.Text = _intellectualEntity.DesignationPrefix;
     TbSheetNumber.Text       = _intellectualEntity.SheetNumber;
     TbDesignation.Focus();
 }
Beispiel #2
0
        /// <inheritdoc/>
        public void Initialize(IWithDoubleClickEditor smartEntity)
        {
            if (!(smartEntity is Section section))
            {
                throw new ArgumentException("Wrong type of entity");
            }

            _section = section;

            TbDesignation.Text       = _section.Designation;
            TbDesignationPrefix.Text = _section.DesignationPrefix;
            TbSheetNumber.Text       = _section.SheetNumber;
            TbDesignation.Focus();
        }