Beispiel #1
0
        /// <summary>
        /// Log exception
        /// </summary>
        /// <param name="ex"></param>
        protected void LogException(Exception ex)
        {
            Console.WriteLine(ex.StackTrace);
            FormException form = new FormException(ex);

            form.ShowDialog();
        }
Beispiel #2
0
 private void btExecutor_Click(object sender, EventArgs e)
 {
     //设置参数
     if (this.compParameters1.Parameters != null)
     {
         this.compParameters1.Parameters.GetParameterValues();
         IStrategy strategy = this.strategyData.Strategy;
         strategy.Parameters.SetParameterValue(this.compParameters1.Parameters.GetParameterValues());
     }
     try
     {
         this.chartComponent.ChartComponentStrategy.Run();
         this.DialogResult = DialogResult.OK;
         this.Close();
     }
     catch (Exception ex)
     {
         FormException form = new FormException(ex);
         form.ShowDialog();
         //MessageBox.Show("执行策略出错:" + e.Message);
     }
 }