示例#1
0
        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);
        }
示例#2
0
 private void fillBrushToolStripButton_Click(object sender, EventArgs e)
 {
     controler = AbstractPaint.Initialize <FillFloodPaint>(this.pcmMapPaint);
 }
示例#3
0
 private void circleToolStripButton1_Click(object sender, EventArgs e)
 {
     controler = AbstractPaint.Initialize <CirclePaint>(this.pcmMapPaint);
 }
示例#4
0
 private void pencilToolStripButton_Click(object sender, EventArgs e)
 {
     controler = AbstractPaint.Initialize <DotPaint>(this.pcmMapPaint);
 }