コード例 #1
0
 public void SetBasicControls()
 {
     pictureBox = new PictureBox();
     pictureBox.Image = Image.FromFile("ImageForTest.jpg");
     puzzles = new List<Puzzle>();
     formGameTable = new FormGameTable();
     for (int y = 0; y < 7; y++)
     {
         for (int x = 0; x < 5; x++)
         {
             Puzzle puzzle = new Puzzle();
             puzzle.Width = pictureBox.Image.Width / 5;
             puzzle.Height = pictureBox.Image.Height / 7;
             puzzle.CoordinateX = puzzle.Width * x;
             puzzle.CoordinateY = puzzle.Height * y;
             puzzle.Location = new Point(puzzle.CoordinateX, puzzle.CoordinateY);
             puzzle.ImageOrder = +1;
             puzzles.Add(puzzle);
             formGameTable.Controls.Add(puzzle);
         }
     }
 }
コード例 #2
0
 public PuzzleEventHandlers(FormGameTable form, List <Puzzle> basePuzzleList, List <Puzzle> mixedPuzzleList)
 {
     _form            = form;
     _basePuzzleList  = basePuzzleList;
     _mixedPuzzleList = mixedPuzzleList;
 }
コード例 #3
0
 public SetConjunctionBetweenPuzzles(List<Puzzle> puzzles, FormGameTable form,PictureBox picture)
 {
     this._picture = picture;
     this._puzzles = puzzles;
     this._form = form;
 }
コード例 #4
0
 public RunPuzzlesGame(FormGameTable form, PictureBox pictureBox)
 {
     this._form       = form;
     this._pictureBox = pictureBox;
 }
コード例 #5
0
 public AutoConstructPicture(FormGameTable form1, PictureBox image)
 {
     this.form = form1;
     _image = image;
 }
コード例 #6
0
 public ThrowPuzzlesOnDesk(FormGameTable form1, PictureBox picture)
 {
     this._picture = picture;
     this._form1 = form1;
 }
コード例 #7
0
 public AutoConstructPicture(FormGameTable form1, PictureBox image)
 {
     this.form = form1;
     _image    = image;
 }
コード例 #8
0
 public CheckForPictureBuildCorrectness(FormGameTable form, List <Puzzle> baseList)
 {
     this._form            = form;
     this._basePuzzlesList = baseList;
 }
コード例 #9
0
 public PuzzleEventHandlers(FormGameTable form, List<Puzzle> basePuzzleList, List<Puzzle> mixedPuzzleList)
 {
     _form = form;
     _basePuzzleList = basePuzzleList;
     _mixedPuzzleList = mixedPuzzleList;
 }
コード例 #10
0
 public ThrowPuzzlesOnDesk(FormGameTable form1, PictureBox picture)
 {
     this._picture = picture;
     this._form1   = form1;
 }
コード例 #11
0
 public RunPuzzlesGame(FormGameTable form, PictureBox pictureBox)
 {
     this._form = form;
     this._pictureBox = pictureBox;
 }
コード例 #12
0
 public SetConjunctionBetweenPuzzles(List <Puzzle> puzzles, FormGameTable form, PictureBox picture)
 {
     this._picture = picture;
     this._puzzles = puzzles;
     this._form    = form;
 }
コード例 #13
0
 public CheckForPictureBuildCorrectness(FormGameTable form, List<Puzzle> baseList)
 {
     this._form = form;
     this._basePuzzlesList = baseList;
 }