private void helpButton_Click(object sender, EventArgs e) { Form legend = new Form(); legend.Icon = BIDSHelper.Resources.Common.BIDSHelper; legend.Text = "Measure Group Health Check: Legend"; legend.MaximizeBox = false; legend.MinimizeBox = false; TextBox text = new TextBox(); text.Location = new System.Drawing.Point(2, 2); text.Size = new System.Drawing.Size(500, 380); text.Multiline = true; StringBuilder sb = new StringBuilder(); sb.AppendLine("Columns:"); sb.AppendLine("Measure - The measure name"); sb.AppendLine("Aggregate - The aggregate function for that measure"); sb.AppendLine("Total - The aggregated value across all rows"); sb.AppendLine("Min - The minimum value from a single row"); sb.AppendLine("Max - The maximum value from a single row"); sb.AppendLine("Decimals? - Are there any values that have decimals? More than 4 decimals?"); sb.AppendLine("DSV - The datatype for the column in the data source view"); sb.AppendLine("Current - The current measure datatype"); sb.AppendLine("New - The recommended new measure datatype"); sb.AppendLine(); sb.AppendLine("Datatypes:"); foreach (MeasureGroupHealthCheckPlugin.MeasureDataTypeOption dataType in MeasureGroupHealthCheckPlugin.dataTypeOptions) { sb.Append(dataType.dataType.ToString()).Append("/").Append(dataType.type.Name); sb.Append(" (").Append(dataType.displayMin).Append(" to ").Append(dataType.displayMax).Append(") ").AppendLine(dataType.limitations); } text.Text = sb.ToString(); text.ReadOnly = true; text.Select(0, 0); text.BorderStyle = BorderStyle.None; text.PerformLayout(); legend.Controls.Add(text); legend.Width = text.Width + 4; legend.Height = text.Height + 4; legend.MinimumSize = legend.Size; legend.MaximumSize = legend.Size; legend.SizeGripStyle = SizeGripStyle.Hide; legend.ShowInTaskbar = false; legend.StartPosition = FormStartPosition.CenterParent; legend.FormBorderStyle = FormBorderStyle.Fixed3D; legend.PerformLayout(); legend.ShowDialog(); legend.Dispose(); }