Ejemplo n.º 1
0
        public GridController(PictureBox _bitmap, BuilderController _builder)
        {
            this.canvas = _bitmap;
            GridConfig.Init(ref this.config);
            CreateGridPoints();
            this.canvas.MouseClick += OnClick;
            this.firstClick         = true;

            this.builder = _builder;
        }
Ejemplo n.º 2
0
        public BuildScreenController(Form _tempform)
        {
            this.form             = _tempform;
            this.Screen           = new PictureBox();
            this.Screen.Width     = _tempform.Width - 250;
            this.Screen.Height    = _tempform.Height;
            this.Screen.BackColor = Color.FromArgb(196, 196, 198);
            this.Screen.Location  = new Point(0, 0);
            _tempform.Resize     += (object o, EventArgs ea) => { this.resize(_tempform); };


            this.Screen.Paint += DrawPictureBox;
            builder            = new BuilderController(this.Screen);

            _tempform.Controls.Add(this.Screen);

            Console.WriteLine("BuildController made!");
        }