public TraceDetailListPart(ExpandablePartStateChanged callback) { infoList = new ListView(); infoList.SuspendLayout(); ColumnHeader value = new ColumnHeader { Text = SR.GetString("FV_List_NameCol") }; ColumnHeader value2 = new ColumnHeader { Text = SR.GetString("FV_List_ValueCol") }; infoList.FullRowSelect = true; infoList.Columns.Add(value); infoList.Columns.Add(value2); infoList.ShowItemToolTips = true; infoList.MultiSelect = true; infoList.View = View.Details; infoList.Scrollable = true; infoList.HideSelection = false; infoList.Location = new Point(5, 5); infoList.Size = new Size(420, 145); infoList.TabIndex = 0; infoList.Dock = DockStyle.Fill; infoList.ResumeLayout(); SetupRightPart(infoList, callback, infoList.Height + 30); }
protected void SetupRightPart(Control rightPart, ExpandablePartStateChanged callback, int preferredHeight) { if (rightPart != null) { this.rightPart = rightPart; this.rightPart.TabIndex = 1; rightPanel.Controls.Add(this.rightPart); InitListViewControls(); expandablePartStateChangedCallback = callback; lblPartName.Text = ExpandablePartName; this.preferredHeight = preferredHeight; ExpandPart(); Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right); } }
public TraceDetailMessageInfoPart(ExpandablePartStateChanged callback) { messageInfoControl = new MessageHeaderTraceInfoControl(); messageInfoControl.Dock = DockStyle.Fill; SetupRightPart(messageInfoControl, callback, messageInfoControl.Height + 30); }
public TraceDetailBasicInfoPart(ExpandablePartStateChanged callback) { basicInfoControl = new BasicTraceInfoControl(); basicInfoControl.Dock = DockStyle.Fill; SetupRightPart(basicInfoControl, callback, basicInfoControl.Height + 30); }
public TraceDetailAppDataPart(ExpandablePartStateChanged callback) { appDataCtrl = new AppDataTraceDetailControl(); appDataCtrl.Dock = DockStyle.Fill; SetupRightPart(appDataCtrl, callback, appDataCtrl.Height + 30); }
public TraceDetailDiagnosticsPart(ExpandablePartStateChanged callback) { diagControl = new DiagnosticsTraceDetailControl(); diagControl.Dock = DockStyle.Fill; SetupRightPart(diagControl, callback, diagControl.Height + 30); }
public TraceDetailExceptionPart(ExpandablePartStateChanged callback) { exceptionControl = new ExceptionTraceDetailControl(); exceptionControl.Dock = DockStyle.Fill; SetupRightPart(exceptionControl, callback, exceptionControl.Height + 30); }