annotate Tools/DocGen/Content/Doc/EditableObjects/EditableObject.htm @ 9:1e85f66cf767 default tip

update bltoolkit
author nickolay
date Thu, 05 Apr 2018 20:53:26 +0300
parents f990fcb411a9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
1 <% title # EditableObject class %>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
2 <% order # 1 %>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
3 <p class="j">
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
4 <b>EditableObject</b> is an object that provides functionality to commit and rollback changes to itself.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
5 After verifying the accuracy of changes made to the object, you can accept the changes
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
6 using the <b>AcceptChanges</b> method of the object, which will set the <b>Current</b> field values
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
7 to be the <b>Original</b> values. The <b>RejectChanges</b> method rejects all changes made to the object
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
8 since <b>AcceptChanges</b> was last called. The <b>IsDirty</b> property gets a value that indicates
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
9 whether the object has changed.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
10 </p>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
11 <p class="j">
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
12 If we wrote an editable object manually, we could get the following code just for two editable properties:
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
13 </p>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
14 <% Doc\EditableObjects\ManualEditableObject.cs %>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
15
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
16 <p class='j'>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
17 BLToolkit allows implementing the same functionality by inheriting your object
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
18 from the BLToolkit <b>EditableObject</b> base class and replacing editable members with abstract properties.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
19 </p>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
20 EditableObjectTest.cs
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
21 <% ..\..\..\HowTo\EditableObjects\EditableObjectTest.cs %>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
22
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
23 <p class='j'>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
24 BLToolkit type builder will generate the following for the class above:
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
25 </p>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
26 <% Doc\EditableObjects\EditableObject.cs %>