Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
 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);
     }
 }