public void NewDocument() { Document doc = CreateNewMap(); DocumentForm form = new DocumentForm(doc); ShowForm(form); }
public BaseDocumentForm OpenDocument(Document doc, bool readOnly) { if (doc != null) { BaseDocumentForm form = new DocumentForm(doc); form.ReadOnly = readOnly; ShowForm(form); return(form); } return(null); }