public App() { this.InitializeComponent(); this.Suspending += OnSuspending; DBAdapter.InitializeConnection(); }