コード例 #1
0
        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);
        }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
 public TraceDetailMessageInfoPart(ExpandablePartStateChanged callback)
 {
     messageInfoControl      = new MessageHeaderTraceInfoControl();
     messageInfoControl.Dock = DockStyle.Fill;
     SetupRightPart(messageInfoControl, callback, messageInfoControl.Height + 30);
 }
コード例 #4
0
 public TraceDetailBasicInfoPart(ExpandablePartStateChanged callback)
 {
     basicInfoControl      = new BasicTraceInfoControl();
     basicInfoControl.Dock = DockStyle.Fill;
     SetupRightPart(basicInfoControl, callback, basicInfoControl.Height + 30);
 }
コード例 #5
0
 public TraceDetailAppDataPart(ExpandablePartStateChanged callback)
 {
     appDataCtrl      = new AppDataTraceDetailControl();
     appDataCtrl.Dock = DockStyle.Fill;
     SetupRightPart(appDataCtrl, callback, appDataCtrl.Height + 30);
 }
コード例 #6
0
 public TraceDetailDiagnosticsPart(ExpandablePartStateChanged callback)
 {
     diagControl      = new DiagnosticsTraceDetailControl();
     diagControl.Dock = DockStyle.Fill;
     SetupRightPart(diagControl, callback, diagControl.Height + 30);
 }
コード例 #7
0
 public TraceDetailExceptionPart(ExpandablePartStateChanged callback)
 {
     exceptionControl      = new ExceptionTraceDetailControl();
     exceptionControl.Dock = DockStyle.Fill;
     SetupRightPart(exceptionControl, callback, exceptionControl.Height + 30);
 }