protected override void DoBuildChildren(LayoutPanelBase Layout) { base.DoBuildChildren(Layout); CaptionLabel.Dock = DockStyle.Top; CaptionLabel.SuspendLayout(); if (null != dataSource) { } else { NewMessage.Show(Loc.Instance.GetString("CreateParent: You have a null datasource")); lg.Instance.Line("NoteDataXML_Table->CreateParent", ProblemType.WARNING, Loc.Instance.GetString("You have a null table which should not happen. This usually occurs only during UNIT TESTING because proper create constructor is not used")); BuildDefaultColumns(); } lg.Instance.Line("NoteDataXML_Table-CreateParent", ProblemType.MESSAGE, String.Format("Passing {0} columns into new TablePanel", Columns.Length)); Table = new TablePanel(dataSource, HandleCellBeginEdit, Columns, GoToNote, this.Caption, GetRandomTableResults); lg.Instance.Line("NoteDataXML_Table->CreateParent", ProblemType.MESSAGE, String.Format("Before HANDLEDATABINING my name is {0}", this.Caption)); Table.Parent = ParentNotePanel; Table.Dock = DockStyle.Fill; Table.BringToFront(); Table.ReadOnly = this.ReadOnly; ToolStripMenuItem TableCaptionLabel = LayoutDetails.BuildMenuPropertyEdit(Loc.Instance.GetString("Table Caption: {0}"), TableCaption, Loc.Instance.GetString("When generating random data this caption will be used to present the results."), HandleNoteLinkNameChange); ToolStripMenuItem NextTableLabel = LayoutDetails.BuildMenuPropertyEdit(Loc.Instance.GetString("Next Table: {0}"), NextTable, Loc.Instance.GetString("Set a value here and if the random results of this table resolve without finding a 'NextTable' in the table itself, it will proceed with randomization on the table specified here."), HandleNextTableKeyDown); useHeadingStyleOption = new ToolStripButton(); useHeadingStyleOption.Text = Loc.Instance.GetString("Use Heading Styled Captions"); useHeadingStyleOption.CheckOnClick = true; useHeadingStyleOption.Checked = useHeadingStyleForCaption; useHeadingStyleOption.Click += (object sender, EventArgs e) => { SetSaveRequired(true); useHeadingStyleForCaption = useHeadingStyleOption.Checked; }; properties.DropDownItems.Add(new ToolStripSeparator()); properties.DropDownItems.Add(TableCaptionLabel); properties.DropDownItems.Add(NextTableLabel); properties.DropDownItems.Add(useHeadingStyleOption); CaptionLabel.ResumeLayout(); }