Namespace: Semata.ControlsCLR
Class: EditableDataManager
Construct a new instance of EditableDataManager.
public EditableDataManager(IEditableDataSource source, Func<IEditableData> creator, Func<IEditableData, bool> isOkToSave, Func<IEditableData, bool> isOkToCancel, EditingMode mode)
Parameters
Type | Name | Description |
IEditableDataSource | source | An object that implements IEditableDataSource. |
Func<IEditableData> | creator | A delegate that, when invoked, returns an object implementing IEditableData |
Func<IEditableData, bool> | isOkToSave | A delegate that, when passed an object implenting IEditableData, returns an true if it is ok to save that object |
Func<IEditableData, bool> | isOkToCancel | A delegate that, when passed an object implenting IEditableData, returns an true if it is ok to cancel edits on that object |
EditingMode | mode | The editing mode. |