Esempio n. 1
0
 private void 启动WEB网关ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     gw             = new GateWay(WeavePortTypeEnum.Web, Convert.ToInt32(toolStripTextBox4.Text));
     gw.EventMylog += Gw_EventMylog;
     if (gw.Run("127.0.0.1", Convert.ToInt32(toolStripTextBox1.Text), int.Parse(toolStripTextBox2.Text)))
     {
         toolStripStatusLabel1.Text = "WEB服务启动成功,端口" + (toolStripTextBox1.Text) + "。";
         timer1.Start();
     }
 }
Esempio n. 2
0
 private void 启动ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     isweb          = false;
     gw             = new GateWay(isweb);
     gw.Proportion  = Convert.ToInt32(toolStripTextBox3.Text);
     gw.EventMylog += Gw_EventMylog;
     if (gw.Run("127.0.0.1", Convert.ToInt32(toolStripTextBox1.Text), int.Parse(toolStripTextBox2.Text)))
     {
         toolStripStatusLabel1.Text = "服务启动成功,端口" + (toolStripTextBox1.Text) + "。";
         timer1.Start();
     }
 }
Esempio n. 3
0
 private void 启动ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     gw             = new GateWay(WeavePortTypeEnum.Json, Convert.ToInt32(toolStripTextBox4.Text));
     gw.Proportion  = Convert.ToInt32(toolStripTextBox3.Text);
     gw.Pipeline    = (WeavePipelineTypeEnum)Enum.Parse(typeof(WeavePipelineTypeEnum), toolStripTextBox3.Text);
     gw.EventMylog += Gw_EventMylog;
     if (gw.Run("127.0.0.1", Convert.ToInt32(toolStripTextBox1.Text), int.Parse(toolStripTextBox2.Text)))
     {
         toolStripStatusLabel1.Text = "服务启动成功,端口" + (toolStripTextBox1.Text) + "。";
         timer1.Start();
     }
 }
Esempio n. 4
0
 private void 启动ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     isweb = false;
     gw = new GateWay(isweb);
     gw.Proportion = Convert.ToInt32(toolStripTextBox3.Text);
     gw.EventMylog += Gw_EventMylog;
     if (gw.Run("127.0.0.1", Convert.ToInt32(toolStripTextBox1.Text),int.Parse(toolStripTextBox2.Text)))
     {
         toolStripStatusLabel1.Text = "服务启动成功,端口"+  (toolStripTextBox1.Text) + "。";
         timer1.Start();
     }
     
 }