コード例 #1
0
 private AfxWorkflow ImportDocument(string path)
 {
     var serializer = new AfxSerializer(_documentSvcs);
     return serializer.Deserialize(path) as AfxWorkflow;
 }
コード例 #2
0
 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);
         }
     }
 }