コード例 #1
0
 private void TrackerForm_VisibleChanged(object sender, EventArgs e)
 {
     if (!Visible)
     {
         timer.Stop();
         timerSecondsPlayed.Stop();
         httpClientService.CancelPendingRequests();
         initialLoading = true;
         webBrowser.Document.MouseDown -= new HtmlElementEventHandler(TrackerForm_MouseDown);
         webBrowser.Document.MouseMove -= new HtmlElementEventHandler(TrackerForm_MouseMove);
     }
 }