private void SwitchWindowsScanner_FormClosing(object sender, FormClosingEventArgs e) { _scannerCommon.OnClosing(); _scannerCommon.Dispose(); }