Beispiel #1
0
        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);
        }
Beispiel #2
0
        private static void DrawHoveredTile(Graphics g, Tile tile)
        {
            var style = new TileStyle(Color.Blue, Color.DarkBlue, 3);

            DrawHelper(g, tile, style);
        }
Beispiel #3
0
        private static void DrawDragged(Graphics g, Tile tile)
        {
            var style = new TileStyle(Color.FromArgb(100, Color.Blue), Color.DarkBlue, 1);

            DrawHelper(g, tile, style);
        }