} // validate()

        private void onEditXml(object sender, EventArgs e)
        {
            if (m_dlgEditXml == null)
            {
                m_dlgEditXml = new DlgEditXml();
            }
            String conversation = m_conversation; // Keep original conversation intact

            saveConversation();                   // Store GUI conversation into m_conversation
            m_dlgEditXml.setXml(m_conversation);  // Send GUI conversation to dialog
            setConversation(conversation);        // Restore original m_conversation
            m_dlgEditXml.ShowDialog();
            if (m_dlgEditXml.getValues(out conversation))
            {
                // GUI conversation was modified; load it
                loadConversation(conversation);
            }
        }
Ejemplo n.º 2
0
 private void reloadMission(String xmlMission)
 {
     if (m_dlgEditXml == null)
     {
         m_dlgEditXml = new DlgEditXml();
     }
     m_dlgEditXml.setXml(xmlMission);
     m_dlgEditXml.ShowDialog();
     if (m_dlgEditXml.getValues(out xmlMission))
     {
         setState(State.Edit);
         m_mission.clear();
         m_mission.setXml(xmlMission);
         loadMission(null);
     }
     else
     {
         //this.Close();
     }
 }