public void UncommitConsult(int series) { XmlNode emrNote = GetEmrNoteBySeries(series); string RegistryID = emrDoc.DocumentElement.Attributes[AttributeNames.RegistryID].Value; if (emrNote.Attributes[AttributeNames.Sequence] == null) { return; } string Sequence = emrNote.Attributes[AttributeNames.Sequence].Value; ThisAddIn.UncommitConsultNote(Sequence, RegistryID); }