private void button1_Click(object sender, EventArgs e) { m_hotDocument = new XmlHotDocument(); m_hotDocument.UnderlyingDocumentChanged += new EventHandler(FileChanged); m_hotDocument.Load("HotDOMData.xml"); m_hotDocument.EnableFileChanges = true; // Update UI UpdateUI(); }