Пример #1
0
 public connection(manipulation pb1, manipulation pb2)
 {
     InitializeComponent();
     this.Size        = new Size(675, 275);
     this.panel1.Size = new System.Drawing.Size(475, 200);
     b1          = pb1;
     b2          = pb2;
     label1.Text = b1.type + "'s Collection";
     label2.Text = b2.type + "'s Collection";
     myLines     = new List <string>();
 }
Пример #2
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);
             * }*/
        }
Пример #3
0
 private void mouse_down(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left && R1.Checked)
     {
         manipulation newpicture = new manipulation(form, type, PictureBoxs1, trash, R1, R2, R3, ref lines, port);
         newpicture.Width     = this.Width;
         newpicture.Height    = this.Height;
         newpicture.Image     = this.Image;
         newpicture.SizeMode  = this.SizeMode;
         newpicture.BackColor = Color.Transparent;
         PictureBoxs1.Add(newpicture);
         newpicture.Location = this.Location;
         form.Controls.Add(newpicture);
         newpicture.BringToFront();
         newpicture.Refresh();
     }
 }