Example #1
0
        protected override void Dispose(bool disposing)
        {
            paused = true;

            if (mTimer != null)
            {
                mTimer.Stop();
                mTimer.Dispose();
            }

            base.Dispose(disposing);
        }
Example #2
0
        protected override void OnClosed(EventArgs e)
        {
            IntelPowerGadget.Stop();
            _MyWattsUp.Stop();
            intelGadgetTimer.Stop();
            intelGadgetTimer.Dispose();
            wattsUpTimer.Stop();
            wattsUpTimer.Dispose();

            base.OnClosed(e);
        }
Example #3
0
        protected override void OnClosing(CancelEventArgs e)
        {
            if (mTimer != null)
            {
                mTimer.Stop();
                mTimer.Dispose();
            }
            display.Dispose();
            dispData.Clear();

            PServer1.StopServer();

            base.OnClosing(e);
        }
Example #4
0
 protected override void OnClosed(EventArgs e)
 {
     mTimer.Stop();
     mTimer.Dispose();
     base.OnClosed(e);
 }
 private void GridControls_Unloaded(object sender, System.Windows.RoutedEventArgs e)
 {
     mTimer.Stop();
     mTimer.Dispose();
     display.Dispose();
 }