public Form_WatchList(MainForm pointer) { InitializeComponent(); // customization Model_WatchList.LoadList(); dataGridView1.DataSource = Model_WatchList.list; this.pointer_MainForm = pointer; }
public Form_ViewChart(MainForm pointer) { InitializeComponent(); textBox_sysPath.Text = Config.STOCK_PATH_DEFAULT; this.pointer_MainForm = pointer; colorManipulation(); listBox_lineList.DataSource = chartLines; listBox_lineList.DisplayMember = "ToString"; }
public Form_Automator(MainForm pointer) { pointer_MainForm = pointer; InitializeComponent(); InitializeComboBox(); Model_Automator.reset(); dataGridView1.DataSource = Model_Automator.list; }
public Form_Autorun(MainForm pointer) { InitializeComponent(); this.pointer_MainForm = pointer; this.textBox_log.Text = Config.LOG_PATH_DEFAULT; textBox_log.Enabled = checkBox1.Checked; textBox_status.Enabled = checkBox1.Checked; button_browse.Enabled = checkBox1.Checked; }
public Form_ViewResult(MainForm pointer) { InitializeComponent(); this.pointer_MainForm = pointer; // fetch clustering result from environment every time when this form shows this.allStocksNode = new TreeNode(); this.allStocksNode.Name = "allStocksNode"; this.allStocksNode.Text = "All stocks"; this.treeView1.Nodes.Add(allStocksNode); this.mainNode = new TreeNode(); this.mainNode.Name = "mainNode"; this.mainNode.Text = "Cluster"; this.treeView1.Nodes.Add(mainNode); this.RecuriveTreePopulation(Config.CLUSTER_PATH_DEFAULT, Config.CLUSTER_PATH_DEFAULT, mainNode); mainNode.Expand(); }
public Form_ViewPortfolio(MainForm pointer) { InitializeComponent(); // customization this.pointer_MainForm = pointer; // summary grid view string[][] gridAry = new string[12][]; gridAry[0] = new string[] { "Present:", "" }; gridAry[1] = new string[] { "E(R), % p.a.", "" }; gridAry[2] = new string[] { "Shapre", "" }; gridAry[3] = new string[] { "Beta", "" }; gridAry[4] = new string[] { "Alpha", "" }; gridAry[5] = new string[] { "%VaR, 5%", "" }; gridAry[6] = new string[] { "Optimized:", "" }; gridAry[7] = new string[] { "E(R), % p.a.", "" }; gridAry[8] = new string[] { "Shapre", "" }; gridAry[9] = new string[] { "Beta", "" }; gridAry[10] = new string[] { "Alpha", "" }; gridAry[11] = new string[] { "%VaR, 5%", "" }; for (int i = 0; i < gridAry.Length; i++) { dataGridView_summary.Rows.Add(gridAry[i]); } dataGridView_summary.Rows[0].DefaultCellStyle.Font = new Font(dataGridView_summary.Font, FontStyle.Bold); dataGridView_summary.Rows[6].DefaultCellStyle.Font = new Font(dataGridView_summary.Font, FontStyle.Bold); try { this.UpdatePortfolioScn(); this.UpdateSummaryScn(); } catch (Exception ex) { LogHelper.GetLogger(typeof(MainForm)).FullLog(ex.ToString(), "IGNORE"); } }