Пример #1
0
 public FrmTalkTree()
 {
     m_conversation = "";
     m_currentTreeNode = null;
     m_previousNodes = new Stack<TreeNode>();
     m_stages = null;
     m_dlgEditXml = null;
     InitializeComponent();
     initReplies();
 }
Пример #2
0
        public FrmMission()
        {
            InitializeComponent();
            this.Text = this.Text + " " + CommonTools.Gui.LoginData.ApplicationVersion;

            Database.DataConfiguration.init();
            m_mission = new Mission();
            m_dlgEditXml = null;
            m_dlgReport = null;
            m_dlgSearch = new CommonTools.Gui.DlgSearch();
            m_dlgSearch.configure(Net7.Tables.missions);
            m_fieldChangesMuted = false;

            configureTabs();
            setState(State.View);
        }
Пример #3
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();
     }
 }
Пример #4
0
 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);
     }
 }