private void SetValues() { TbDesignation.Text = _intellectualEntity.Designation; TbDesignationPrefix.Text = _intellectualEntity.DesignationPrefix; TbSheetNumber.Text = _intellectualEntity.SheetNumber; TbDesignation.Focus(); }
/// <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(); }