private void IonMobilityLibraryChanged() { var calc = _driverIonMobilityLibraryListComboDriver.SelectedItem; if (calc != null) { try { if (_predictor != null) { _predictor = _predictor.ChangeLibrary(calc); } } catch (Exception e) { MessageDlg.ShowException(this, e); } } UpdateControls(); }