Ejemplo n.º 1
0
        private bool Late(string noteID, XmlNode emrdoc)
        {
            DateTime lwt = DateTime.Now;

            foreach (XmlNode note in emrdoc.SelectNodes(ElementNames.EmrNote))
            {
                if (noteID == note.Attributes[AttributeNames.NoteID].Value)
                {
                    long lastWritenTime = Convert.ToInt64(note.Attributes[AttributeNames.LastWriteTime].Value);
                    lwt = DateTime.FromFileTime(lastWritenTime);
                    break;
                }
            }

            return
                (ThisAddIn.TimeOutEmr(noteID, emrdoc.Attributes[AttributeNames.RegistryID].Value, lwt));
        }