Ejemplo n.º 1
0
        public void CreateJavaMessageSeries(string messageFilePath)
        {
            CMessages messages          = ConfigControl.ReadMessageXml(messageFilePath);
            string    messageCreatePath = Global.ResFolder + @"\Java\NetWork\" + messages.name;

            if (messages.beans != null && messages.beans.Length > 0)
            {
                CreateJavaMsBean(messages, messageCreatePath);
            }
            if (messages.messages != null && messages.messages.Length > 0)
            {
                CreateJavaMsMessage(messages, messageCreatePath);
                CreateJavaMsHandler(messages, messageCreatePath);
                UpdateMsgPool(messages, Global.ResFolder + @"\Java\NetWork\");
            }
        }
Ejemplo n.º 2
0
 private void btnCreate_Click(object sender, EventArgs e)
 {
     //if (btnSave.Enabled)
     {
         SaveConfig();
     }
     Close();
     foreach (string file in filepaths)
     {
         if (file.Substring(file.Length - 4) == ".xml")
         {
             Global.CsMessageFilePath = file;
             Global.CsMessages        = ConfigControl.ReadMessageXml(Global.CsMessageFilePath);
             Debug.Log("配置表读取成功");
             CCSHandleFuns.CreateCSMessage(checkBoxbean.Checked, checkBoxmessage.Checked, checkBoxhandler.Checked, checkBoxCservice.Checked, checkBoxMessagePool.Checked, outPath);
         }
     }
     System.Diagnostics.Process.Start("Explorer.exe", outPath);
 }