private static void DrawHelper(Graphics g, Tile tile, TileStyle style) { var rect = tile.GetRectangle(); g.FillRectangle(new SolidBrush(style.FillColor), rect); g.DrawRectangle(new Pen(style.BorderColor) { Width = style.BorderWidth }, rect); }
private static void DrawHoveredTile(Graphics g, Tile tile) { var style = new TileStyle(Color.Blue, Color.DarkBlue, 3); DrawHelper(g, tile, style); }
private static void DrawDragged(Graphics g, Tile tile) { var style = new TileStyle(Color.FromArgb(100, Color.Blue), Color.DarkBlue, 1); DrawHelper(g, tile, style); }