Exemplo n.º 1
0
 private void btnStop_Click(object sender, EventArgs e)
 {
     // stop service
     try
     {
         this.Enabled   = false;
         Cursor.Current = Cursors.WaitCursor;
         ServiceUtilities.StopService("EDScreenshotService");
     }
     finally
     {
         updateServiceStatus();
         Cursor.Current = Cursors.Default;
         this.Enabled   = true;
     }
 }