Esempio n. 1
0
 private void pictureBox1_Click(object sender, EventArgs e)
 {
     if (flag == true)
     {
         FishAdult a = new FishAdult();
         Graphics  g = pictureBox1.CreateGraphics();
         a.Create(MousePosition.X, MousePosition.Y, g);
         flag = false;
     }
 }
Esempio n. 2
0
 private void Form1_Click(object sender, EventArgs e)
 {
     //g = Graphics.FromImage(frm);
     if (flag == true)
     {
         a.Create(MousePosition.X, MousePosition.Y);
         BackgroundImage = frm;
         flag            = false;
     }
 }