Beispiel #1
0
        /// <summary>
        /// Close the form, which closes the application.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void exitItem_Click(object sender, EventArgs e)
        {
            if (_backgroundThread != null)
            {
                _backgroundThread.Abort();
            }

            if (_mqttManager != null)
            {
                _mqttManager.Dispose();
            }

            if (_mainWindow != null)
            {
                _mainWindow.Close();
            }

            Current.Shutdown();
        }
Beispiel #2
0
 public void TestBreakDown()
 {
     manager.Dispose();
 }