private void OnApplicationExit(AppExitType theExitType) { if (myTimer != null) { myTimer.Dispose(); myTimer = null; } CleanDanglingBitmaps(); }
private void SaveConfigurationSettings(AppExitType theExitType) { switch (theExitType) { case AppExitType.Normal: VideoConfiguration.Save(); Log.Debug("Video settings saved."); break; case AppExitType.Forced: case AppExitType.Error: Log.Info("Error in application close. Not saving configuration settings"); break; } }
private void CloseApplication(AppExitType theExitType) { switch (theExitType) { case AppExitType.Normal: Log.Info("Exiting CAM Application. Normal Exit"); break; case AppExitType.Forced: Log.Info("Exiting CAM Application. Forced Exit!"); break; case AppExitType.Error: Log.Info("Exiting CAM Application. Unknown error happened!"); break; } Environment.Exit(0); }
private void CloseApplication(AppExitType theExitType) { switch (theExitType) { case AppExitType.Normal: Log.Info("Exiting CAM Application. Normal Exit"); break; case AppExitType.Forced: Log.Info("Exiting CAM Application. Forced Exit!"); break; case AppExitType.Error: Log.Info("Exiting CAM Application. Unknown error happened!"); break; } Environment.Exit(0); }
private void SaveConfigurationSettings(AppExitType theExitType) { switch (theExitType) { case AppExitType.Normal: VideoConfiguration.Save(); Log.Debug("Video settings saved."); break; case AppExitType.Forced: case AppExitType.Error: Log.Info("Error in application close. Not saving configuration settings"); break; } }
private void OnApplicationExit(AppExitType theExitType) { if (myTimer != null) { myTimer.Dispose(); myTimer = null; } CleanDanglingBitmaps(); }