private void Ui_TilePainted(object sender, PaintEventArgs e) { if (CurrentArea != null) { if (CurrentArea.Contains(Ui.PaintingTile.X, Ui.PaintingTile.Y)) { e.Graphics.FillRegion(brush, e.Graphics.Clip); } } }
public void Apply(Tile tile) { if (CurrentArea != null) { if (!CurrentArea.Contains(tile.X, tile.Y)) { CurrentArea.Add(tile.X, tile.Y); Context.UnsavedChanges = true; } else { CurrentArea.Remove(tile.X, tile.Y); Context.UnsavedChanges = true; } } }