protected override void OnClosing(CancelEventArgs e) { CancelImport(); AppSettings.Save(); base.OnClosing(e); }