public void SetArea(Area a) { Area.TileModifiedHandler handler = new Area.TileModifiedHandler(ModifiedTileCallback); if (area != null) area.TileModifiedEvent -= handler; a.TileModifiedEvent += handler; area = a; area.DrawAllTiles(); this.QueueDraw(); }
public void SetArea(Area a) { Area.TileModifiedHandler handler = new Area.TileModifiedHandler(ModifiedTileCallback); if (area != null) { area.TileModifiedEvent -= handler; } a.TileModifiedEvent += handler; area = a; area.DrawAllTiles(); this.QueueDraw(); }