Пример #1
0
        private void Exit_Click(object sender, EventArgs e)
        {
            try
            {
                // Stop the updater thread
                _dcu.Stop();

                // Hide the tray icon and close
                _notifyIcon.Visible = false;
                this.Close();
            }
            catch (Exception ex)
            {
                HandleException(ex);
            }
        }
Пример #2
0
 protected override void OnStop()
 {
     dcu.Stop();
 }