Пример #1
0
        public MazeConfigForm(MazeController control) {
            MazePanel panel = new MazePanel(control);

            this.Padding = new Padding(0);
            this.FormBorderStyle = FormBorderStyle.Fixed3D;
            this.AutoSize = true;

            this.Controls.Add(panel);           
        }
Пример #2
0
        public MazePanel(MazeController control) {
            this.Width = CELL_SIZE * control.Maze.Width;
            this.Height = CELL_SIZE * control.Maze.Height;
            this.Margin = new Padding(0);
            this.SetStyle(ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true);


            this.control = control;
            control.OnChange += new MazeController.ChangeHandler(maze_OnChange);
        }
Пример #3
0
 public MazeReporter(MazeController control) {
     this.control = control;
 }
Пример #4
0
 public MazePlugin() {
     control = new MazeController();
     reporter = new MazeReporter(control);
 }