private void App_OnExit(object sender, ExitEventArgs e) { //TODO: Save all settings, stop all encoding. }