Ejemplo n.º 1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            var op = PipLineManager.operation;

            if (op == 1)
            {
                tabControl1.SelectedIndex = 3;
            }
            else if (op == 2)
            {
                tabControl1.SelectedIndex = 2;
            }
            else if (op == 3)
            {
                tabControl1.SelectedIndex = 1;
            }
            else
            {
                tabControl1.SelectedIndex = 0;
            }
            SetWindowSize();
            timer1.Start();
            ProcGraph          = new ProcessGraph(ProcessHistory);
            elementHost1.Child = ProcGraph;
            FileAccessCount    = PathToWatchList.FileCount;
            textBox1.Text      = FileAccessCount.ToString();
        }
Ejemplo n.º 2
0
 private void Form3_Load(object sender, EventArgs e)
 {
     this.Width          = Screen.PrimaryScreen.Bounds.Width - 100;
     this.Height         = Screen.PrimaryScreen.Bounds.Height - 100;
     elementHost2.Width  = this.Width - 50;
     elementHost2.Height = this.Height - 50;
     GenerateProcessTreeList();
     ProcGraph = new ProcessGraph(AllProcess, PsTree);
     //elementHost2.Size=new Size(ClientRectangle.X,ClientRectangle.Y);
     //elementHost2.Width = ClientRectangle.X;
     //elementHost2.Height = ClientRectangle.Y;
     elementHost2.Child = ProcGraph;
 }