private void Window_Closing(object sender, CancelEventArgs e) { Temp.OnTempUpdated -= temp_OnTempUpdated; if (Temp != null) { Temp.Stop(); } }
/// <summary> /// Stop the plugin. /// </summary> public void Stop() { _temp.Stop(); }