private void onLoadMoleculeFileSubmitted(string filePath) { MoleculeSettings molecule = molecules.Add(filePath); if (interactionsPanel.MonitoringEnabled) { interactionsPanel.StopInteractions(); console.ShowError("Stopped monitoring molecular interactions, loading molecule"); } if (filePath.EndsWith(Settings.SettingsFileExtension)) { UserInterfaceEvents.RaiseLoadMoleculeSettings(molecule.ID, filePath, true, true, true, true, true, loadRenderSettings); } else { UserInterfaceEvents.RaiseLoadMolecule(molecule.ID, filePath, molecule.RenderSettings); } }