public override void CreateDocument(string newFile, object template, object data, Durados.Workflow.DocumentType documentType, Durados.View view) { CreateDocument2(newFile, (string)template, (Dictionary <string, object>)data); }
public virtual void CreateDocument(string newFile, object template, object data, Durados.Workflow.DocumentType documentType, Durados.View view) { switch (documentType) { case Durados.Workflow.DocumentType.Word: CreateWordDocument(newFile, (string)template, data, view); break; case Durados.Workflow.DocumentType.Xml: CreateXmlDocument(newFile, (Durados.Workflow.XmlTemplate)template, data, view); break; default: break; } }