private void OnOptions(object sender, EventArgs e) { try { ChartSettings oldSettings = new ChartSettings(m_settings); ChartSettingsDialog dialog = new ChartSettingsDialog(this); DialogResult result = dialog.ShowDialog(); if (DialogResult.Cancel == result) { m_settings = oldSettings; } else if (DialogResult.Yes == result) { ChartSettingsManager.Save(m_parameters.Symbol, m_settings); } } catch (System.Exception ex) { MessageBox.Show(ex.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error); } }