private void UpdateSkin() { // update rows height and columns width FormSizeAndLocation = Config.Local.GetParameter("Portfolio Form Size And Location"); TablesRowHeight = Config.Local.GetParameter("Table Rows Height"); try { TableConfig.LoadDataGridView(portfolioDataGridView, "Portfolio Table"); } catch { } // update colors portfolioDataGridView.RowTemplate.DefaultCellStyle.BackColor = Config.Color.BackColor; portfolioDataGridView.RowTemplate.DefaultCellStyle.ForeColor = Config.Color.ForeColor; portfolioDataGridView.RowTemplate.DefaultCellStyle.SelectionBackColor = Config.Color.SelectionBackColor; portfolioDataGridView.RowTemplate.DefaultCellStyle.SelectionForeColor = Config.Color.SelectionForeColor; portfolioDataGridView.Refresh(); summaryDataGridView.RowTemplate.DefaultCellStyle.BackColor = Config.Color.SummeryBackColor; summaryDataGridView.RowTemplate.DefaultCellStyle.ForeColor = Config.Color.ForeColor; summaryDataGridView.RowTemplate.DefaultCellStyle.SelectionBackColor = summaryDataGridView.RowTemplate.DefaultCellStyle.BackColor; summaryDataGridView.RowTemplate.DefaultCellStyle.SelectionForeColor = summaryDataGridView.RowTemplate.DefaultCellStyle.ForeColor; summaryDataGridView.Refresh(); }
private void UpdateSkin() { // update rows height and columns width FormSizeAndLocation = Config.Local.GetParameter("Analysis Form Size And Location"); TablesRowHeight = Config.Local.GetParameter("Table Rows Height"); try { TableConfig.LoadDataGridView(resultsDataGridView, "Analysis Table"); } catch { } ArrayList list1 = new ArrayList(); list1.Add(volatilityTextBox); list1.Add(underlyingTextBox); list1.Add(endDateTextBox); list1.Add(toTextBox); list1.Add(resoTextBox); list1.Add(fromTextBox); foreach (TextBox tb in list1) { tb.BackColor = Config.Color.BackColor; tb.ForeColor = Config.Color.ForeColor; tb.Refresh(); } modeComboBox.BackColor = volatilityTextBox.BackColor; modeComboBox.ForeColor = volatilityTextBox.ForeColor; }