Ejemplo n.º 1
0
        //Creates the left panel flow layout and adds the session label to it.
        private void createLeftSide()
        {
            leftPanel = new FlowLayoutPanel();
            leftPanel.FlowDirection = FlowDirection.TopDown;
            leftPanel.Size = new Size(200, this.Size.Height-80);

            leftPanel.Location = new Point(15, 15);
            leftPanel.BorderStyle = BorderStyle.FixedSingle;
            Controls.Add(leftPanel);
            leftPanel.BringToFront();

            sessionLabel = new Label();
            sessionLabel.Location = new Point(140,20);
            sessionLabel.ForeColor = Color.Purple;
            sessionLabel.AutoSize = true;
           
            Controls.Add(sessionLabel);

        }
Ejemplo n.º 2
0
        private void btnObserve_Click(object sender, EventArgs e)
        {
            panelFocus = monitorNavs[0];

            lblTitle.Text = "观察期监控器";
            lblRightTitle.Text = string.Format("数量:{0}", panelFocus.Controls.Count);

            panelFocus.BringToFront();
        }
Ejemplo n.º 3
0
 private FlowLayoutPanel createPanel()
 {
     FlowLayoutPanel panelRbs = new FlowLayoutPanel();
     panelRbs.Name = pnlRbs + qryIndex.ToString();
     panelRbs.Location = new Point(txtBody.Location.X - 100, txtBody.Location.Y + sqlBoxIndexer + 10);
     int boxSize = 100;
     panelRbs.Height = boxSize;
     panelRbs.Width = boxSize;
     panelRbs.BringToFront();
     RadioButton rb1 = createRb(RbType.Excel);
     RadioButton rb2 = createRb(RbType.CSV);
     RadioButton rb3 = createRb(RbType.Command);
     panelRbs.Controls.AddRange(new Control[] { rb1, rb2, rb3 });
     return panelRbs;
 }