private AfxWorkflow ImportDocument(string path) { var serializer = new AfxSerializer(_documentSvcs); return serializer.Deserialize(path) as AfxWorkflow; }
private void ExportDocument(string path) { var documentView = _documentPane.Content as AfxWorkflowView; if(documentView != null) { var documentData = documentView.Model; if(documentData != null) { var serializer = new AfxSerializer(_documentSvcs); serializer.Serialize(path, documentData); } } }