Exemplo n.º 1
0
        private void BL_Click(object sender, EventArgs e)
        {
            Panel genunits = new Panel();

            genunits.Location    = new Point(90, 40);
            genunits.Size        = new Size(1150, 530);
            genunits.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            genunits.AutoScroll  = true;
            tabControl1.SelectedTab.Controls.Add(genunits);
            //this.Hide();
            DGI01 newwin = new DGI01();

            newwin.ShowDialog();
        }
Exemplo n.º 2
0
 public unity(DGI01 f, string n, List <manipulation> P, PictureBox trashbox, RadioButton R01, RadioButton R02, RadioButton R03, ref List <CLines> l, ports p)
 {
     form             = f;
     type             = n;
     this.MouseDown  += new MouseEventHandler(mouse_down);
     this.MouseMove  += new MouseEventHandler(Mouse_Move);
     gs               = f.CreateGraphics();
     this.MouseHover += new EventHandler(Mouse_Hover);
     PictureBoxs1     = P;
     trash            = trashbox;
     R1               = R01;
     R2               = R02;
     R3               = R03;
     lines            = l;
     port             = p;
 }
Exemplo n.º 3
0
        public CLines(manipulation pb1, manipulation pb2, DGI01 f)
        {
            B1   = pb1;
            B2   = pb2;
            form = f;
            gs   = form.CreateGraphics();
            this.Drawing(gs);
            connection setting = new connection(pb1, pb2);

            setting.ShowDialog();
            myLines = new List <string>(setting.getlist());

            /*foreach (string s in myLines)
             * {
             *  Debug.WriteLine(s);
             * }*/
        }