|
@@ -259,24 +259,6 @@ namespace PRSDesktop
|
|
|
else if (editor == ITP) ITP_OnDefineLookups(editor);
|
|
|
}
|
|
|
|
|
|
- public Document? FindDocument(string filename)
|
|
|
- {
|
|
|
- return new Client<Document>().Load(new Filter<Document>(x => x.FileName).IsEqualTo(filename)).FirstOrDefault();
|
|
|
- }
|
|
|
-
|
|
|
- public Document? GetDocument(Guid id)
|
|
|
- {
|
|
|
- Document? doc = null;
|
|
|
- if (id != Guid.Empty)
|
|
|
- doc = new Client<Document>().Load(new Filter<Document>(x => x.ID).IsEqualTo(id)).FirstOrDefault();
|
|
|
- return doc;
|
|
|
- }
|
|
|
-
|
|
|
- public void SaveDocument(Document document)
|
|
|
- {
|
|
|
- new Client<Document>().Save(document, "");
|
|
|
- }
|
|
|
-
|
|
|
object?[] IDynamicEditorHost.GetItems() => new object?[] { SelectedAssignment };
|
|
|
|
|
|
public BaseEditor? GetEditor(DynamicGridColumn column) => column.Editor.CloneEditor();
|