Ejemplo n.º 1
0
 public myImage()
 {
     pictureBox             = new myPictureBox();
     pictureBox.Size        = new Size(66, 66);//100,100);
     pictureBox.BackColor   = Color.White;
     pictureBox.BorderStyle = BorderStyle.FixedSingle;
     //pictureBox.Dock = DockStyle.Fill;
     pictureBox.SizeMode = PictureBoxSizeMode.StretchImage;
     pictureBox.my_image = this;
 }
Ejemplo n.º 2
0
        private void PictureBoxDoubleClick(object sender, System.EventArgs e)
        {
            myPictureBox pictureBox = (myPictureBox)sender;

            //	MessageBox.Show("dd" + ((myImage)pictureBox.my_image).instrumentName);
            //Sessions session = (Sessions)this.parentForm;
            activeInstrument = ((myImage)pictureBox.my_image);
            DialogResult     = DialogResult.OK;
            this.Close();
        }