/// <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(); }
public void TestBreakDown() { manager.Dispose(); }