Exemple #1
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();
        }
Exemple #2
0
        public static void chkProcessMemory3(Log log)
        {
            const string  TARGET = "notepad.exe";
            ProcessMemory mem    = new mwg.InterProcess.ProcessMemory(TARGET);

            if (!mem.Available)
            {
                log.WriteLine("notepad.exe なるプロセスは起動していません。");
                return;
            }

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

            f.Size = new System.Drawing.Size(700, 500);
            ProcessView view = new ProcessView();

            view.Dock = Forms::DockStyle.Fill;
            view.SetProcess(mem);
            f.Controls.Add(view);
            f.ShowDialog();
            f.Dispose();
        }
        public void MakeSubNetingForm()
        {
            f            = new FrostForm();
            f.AutoScroll = true;

            f.Size = new System.Drawing.Size(10000, 5000);
            binaryTree.getRoot().getButton().Location = new System.Drawing.Point(5000, 0);
            f.WindowState = Forms.FormWindowState.Maximized;
            f.SetAutoScrollMargin(10000, 5000);



            binaryTree.getRoot().getButton().Click += (sender, args) =>
            {
                IPButton_Click();
            };
            f.Controls.Add(binaryTree.getRoot().getButton());


            f.Show();
            int x = binaryTree.getRoot().getButton().Location.X - 600;

            f.AutoScrollPosition = new System.Drawing.Point(x, 0);
        }