Mercurial > pub > bltoolkit
annotate Demo/WinForms/Forms/ObjectViews/PersonView.cs @ 9:1e85f66cf767 default tip
update bltoolkit
author | nickolay |
---|---|
date | Thu, 05 Apr 2018 20:53:26 +0300 |
parents | f990fcb411a9 |
children |
rev | line source |
---|---|
0 | 1 using System; |
2 | |
3 using BLToolkit.ComponentModel; | |
4 | |
5 using BLToolkit.Demo.ObjectModel; | |
6 | |
7 namespace BLToolkit.Demo.Forms.ObjectViews | |
8 { | |
9 public class PersonView : IObjectView | |
10 { | |
11 #region IObjectView Members | |
12 | |
13 private Person _person; | |
14 object IObjectView.Object | |
15 { | |
16 get { return _person; } | |
17 set { _person = (Person)value; } | |
18 } | |
19 | |
20 #endregion | |
21 | |
22 public string FormTitle | |
23 { | |
24 get { return _person.ID > 0? _person.FullName: "New Person"; } | |
25 } | |
26 } | |
27 } |