示例#1
0
        private void BtnStart_Click(object sender, EventArgs e)
        {
            var msg = RuningWorker.Start();

            if (msg.Contains("正常启动成功"))
            {
                btnStart.Enabled = false;
                IsStart          = true;
            }
            MessageBox.Show(msg.Replace("<br/>", "\r\n"));
        }
示例#2
0
 protected override void OnStart(string[] args)
 {
     RuningWorker.Start();
 }