Example #1
0
        void UpdateDataGridView(SimCaseResultOverview experimentData)
        {
            textBox0.Text = experimentData.ToString();
            dataGridView1.Rows.Clear();

            foreach (IPnLResult row in _result)
            {
                double yearPnLPerMDD = row.PPM;
                if (double.IsNaN(yearPnLPerMDD))
                {
                    continue;
                }
                int index = dataGridView1.Rows.Add();
                dataGridView1.Rows[index].Cells[0].Value = row.Name;
                dataGridView1.Rows[index].Cells[1].Value = yearPnLPerMDD.ToString("n4");

                double avgInvest = row.AvgInvest;
                double maxInvest = row.MaxInvest;
                double roi = row.AvgPnLPerYear;
                dataGridView1.Rows[index].Cells[2].Value = roi.ToString("n0");
                dataGridView1.Rows[index].Cells[3].Value = avgInvest.ToString("n0");
                dataGridView1.Rows[index].Cells[4].Value = maxInvest.ToString("n0");
            }
        }
Example #2
0
 void UpdateOverview(SimCaseResultOverview overview)
 {
     textBox1.Text = overview.ToString();
 }