Guest User

Untitled

a guest
Oct 13th, 2015
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.34 KB | None | 0 0
  1. ...
  2. private TileGame game;
  3.  
  4. public Form1()
  5. {
  6.     InitializeComponets();
  7.    
  8.     game = new TileGame(pictureBox1);
  9. }
  10. ...
  11.  
  12. public class TileGame
  13. {
  14.     private Control canvas;
  15.    
  16.     public TileGame(Control canvas)
  17.     {
  18.         this.canvas = canvas;
  19.        
  20.         canvas.Paint += canvas_Paint;
  21.     }
  22.  
  23.     private void canvas_Paint(PaintEventArgs e)
  24.     {
  25.         ...
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment