public EmrNote(AuthorInfo authorInfo, XmlElement emrNote, NoteEditMode editMode, string registryID, MainForm etp) { emrTaskPane = etp; this.editModes = editMode; merge = emrNote.Attributes[AttributeNames.Merge].Value; if (emrNote.Attributes[AttributeNames.StartTime] != null) { startTime = emrNote.Attributes[AttributeNames.StartTime].Value; } noteInfo = new NoteInfo(authorInfo, registryID, false, emrNote.Attributes[AttributeNames.Header].Value, emrNote.Attributes[AttributeNames.Unique].Value); noteInfo.sexOption = (emrNote.Attributes[AttributeNames.Sex].Value == StringGeneral.Yes); sexOption = emrNote.Attributes[AttributeNames.Sex].Value; author = new UCAuthor(authorInfo, false, emrTaskPane); if (emrNote.Attributes[AttributeNames.Header].Value == StringGeneral.None) { XmlNode theader = emrNote.SelectSingleNode(ElementNames.Header); if (theader != null) { header = theader.Clone(); } } noteInfo.SetEditMode(editMode); // SetEditModes(); }
public EmrNote(AuthorInfo authorInfo, string regstryID, MainForm etp) { emrTaskPane = etp; /* Display note pattern on word window. */ EmrPattern(authorInfo, regstryID); /* set writing mode */ noteInfo.SetEditMode(NoteEditMode.Writing); /* Set focus */ ResetFocus(); /* Before some new words have been input, no save operation can be executed */ //ActiveDocumentManager.getDefaultAD().Saved = true; //myDoc = ActiveDocumentManager.getDefaultAD(); //myDoc.Saved = true; }