Ejemplo n.º 1
0
 private void InitializeComponent()
 {
     this.treeView1     = new System.Windows.Forms.TreeView();
     this.splitter1     = new System.Windows.Forms.Splitter();
     this.propertyGrid1 = new System.Windows.Forms.PropertyGrid();
     this.SuspendLayout();
     //
     // treeView1
     //
     this.treeView1.Dock          = System.Windows.Forms.DockStyle.Left;
     this.treeView1.Location      = new System.Drawing.Point(0, 0);
     this.treeView1.Name          = "treeView1";
     this.treeView1.Size          = new System.Drawing.Size(162, 344);
     this.treeView1.TabIndex      = 0;
     this.treeView1.BeforeExpand += new System.Windows.Forms.TreeViewCancelEventHandler(this.treeView1_BeforeExpand);
     this.treeView1.AfterSelect  += new System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterSelect);
     //
     // splitter1
     //
     this.splitter1.Location = new System.Drawing.Point(162, 0);
     this.splitter1.Name     = "splitter1";
     this.splitter1.Size     = new System.Drawing.Size(3, 344);
     this.splitter1.TabIndex = 1;
     this.splitter1.TabStop  = false;
     //
     // propertyGrid1
     //
     this.propertyGrid1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.propertyGrid1.Location = new System.Drawing.Point(165, 0);
     this.propertyGrid1.Name     = "propertyGrid1";
     this.propertyGrid1.Size     = new System.Drawing.Size(239, 344);
     this.propertyGrid1.TabIndex = 2;
     //
     // ProcessView
     //
     this.Controls.Add(this.propertyGrid1);
     this.Controls.Add(this.splitter1);
     this.Controls.Add(this.treeView1);
     this.Name = "ProcessView";
     this.Size = new System.Drawing.Size(404, 344);
     this.ResumeLayout(false);
 }
Ejemplo n.º 2
0
        public static void chkProcessMemory2(Log log)
        {
            ProcessMemory       mem;
            Diag::ProcessModule mod = GetNotepadModule(log, out mem);

            if (mod == null)
            {
                return;
            }

            Module module = new Module(mem, mod);

            Forms::Form         f    = new System.Windows.Forms.Form();
            Forms::PropertyGrid grid = new System.Windows.Forms.PropertyGrid();

            grid.Dock           = Forms::DockStyle.Fill;
            grid.SelectedObject = module;
            f.Controls.Add(grid);
            f.ShowDialog();
            f.Dispose();
        }