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); } } }
public PuzzleEventHandlers(FormGameTable form, List <Puzzle> basePuzzleList, List <Puzzle> mixedPuzzleList) { _form = form; _basePuzzleList = basePuzzleList; _mixedPuzzleList = mixedPuzzleList; }
public SetConjunctionBetweenPuzzles(List<Puzzle> puzzles, FormGameTable form,PictureBox picture) { this._picture = picture; this._puzzles = puzzles; this._form = form; }
public RunPuzzlesGame(FormGameTable form, PictureBox pictureBox) { this._form = form; this._pictureBox = pictureBox; }
public AutoConstructPicture(FormGameTable form1, PictureBox image) { this.form = form1; _image = image; }
public ThrowPuzzlesOnDesk(FormGameTable form1, PictureBox picture) { this._picture = picture; this._form1 = form1; }
public CheckForPictureBuildCorrectness(FormGameTable form, List <Puzzle> baseList) { this._form = form; this._basePuzzlesList = baseList; }
public PuzzleEventHandlers(FormGameTable form, List<Puzzle> basePuzzleList, List<Puzzle> mixedPuzzleList) { _form = form; _basePuzzleList = basePuzzleList; _mixedPuzzleList = mixedPuzzleList; }
public SetConjunctionBetweenPuzzles(List <Puzzle> puzzles, FormGameTable form, PictureBox picture) { this._picture = picture; this._puzzles = puzzles; this._form = form; }
public CheckForPictureBuildCorrectness(FormGameTable form, List<Puzzle> baseList) { this._form = form; this._basePuzzlesList = baseList; }