internal void Create(string stratName_, string[] columnHeadings_, double[] wts_, CovarianceItem cov_) { lblWtsHeading.Text = string.Format("Weights for '{0}'", stratName_); if (columnHeadings_ == null || wts_ == null) { Logger.Warn("WtsContVar.Create called without any weights - won't display anything", typeof(WtsContToVar)); return; } simpleWtsColumnChart1.Create(columnHeadings_, wts_); if (cov_ == null) { Logger.Warn("WtsContVar.Create called without a covariance - won't be able to display risk parts of analysis", typeof(WtsContToVar)); return; } simpleWtsColumnChart2.Create(columnHeadings_, cov_.GetContToVar(wts_)); lblTargetVol.Text = string.Format("TargetVol={0}", cov_.GetVol(wts_).ToString("##0.0#%")); }