forked from dxmi/XAF_Non-Persistent-Objects-Editing-Demo
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathAccount.cs
More file actions
27 lines (25 loc) · 942 Bytes
/
Account.cs
File metadata and controls
27 lines (25 loc) · 942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System.ComponentModel;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.Validation;
namespace NonPersistentObjectsDemo.Module.BusinessObjects {
[DefaultClassOptions]
[DefaultListViewOptions(true, NewItemRowPosition.Top)]
[DefaultProperty("PublicName")]
[DevExpress.ExpressApp.DC.DomainComponent]
public class Account : NonPersistentObjectImpl {
private string _myKey;
[DevExpress.ExpressApp.ConditionalAppearance.Appearance("", Enabled = false, Criteria = "Not IsNewObject(This)")]
[RuleRequiredField]
[DevExpress.ExpressApp.Data.Key]
public string MyKey {
get { return _myKey; }
set { _myKey = value; }
}
private string publicName;
public string PublicName {
get { return publicName; }
set { SetPropertyValue(ref publicName, value); }
}
}
}