public FrmMapEdit() { InitializeComponent(); //XnaMapControl xmc = new XnaMapControl(this.panel1.Handle); //xmc.Run(); // //xmc.AddToControl(this, this.panel1); this.Disposed += new EventHandler(FrmMapEdit_Disposed); this.panel1.Controls.Clear(); this.brickGrid1.OnSelectArea += new EventHandler(brickGrid1_OnSelectArea); this.InitializeBrick(); controler = AbstractPaint.Initialize <DotPaint>(this.pcmMapPaint); }
private void fillBrushToolStripButton_Click(object sender, EventArgs e) { controler = AbstractPaint.Initialize <FillFloodPaint>(this.pcmMapPaint); }
private void circleToolStripButton1_Click(object sender, EventArgs e) { controler = AbstractPaint.Initialize <CirclePaint>(this.pcmMapPaint); }
private void pencilToolStripButton_Click(object sender, EventArgs e) { controler = AbstractPaint.Initialize <DotPaint>(this.pcmMapPaint); }