Exemple #1
0
 private void btnStart_Click(object sender, EventArgs e)
 {
     if (!WindowsServiceUtil.IsExist(serviceName))
     {
         MessageBox.Show(serviceName + "服务不存在");
     }
     WindowsServiceUtil.ServiceStart(serviceName);
 }