Neco/LandView/GraphicsEngine.cs
/// <summary>Draws all districts in a country</summary>
/// <param name="C">Country with all the districts to draw</param>
/// <param name="GRM">Graphics to draw to</param>
/// <param name="Origin">Point of the given graphics that defines 0,0</param>
Draws all districts in a country
Draws all districts in a country
public static void DrawDistricts(Country C, Graphics GRM, Point Origin) {
            Pen DistrictPen = new(Color.Black, 10);
            Font NameFont = new(FFamily, 24, FontStyle.Bold | FontStyle.Italic, GraphicsUnit.Point);
            Font InfoFont = new(FFamily, 12, FontStyle.Regular, GraphicsUnit.Point);
            Color LabelForeground = Color.White;
            Color LabelBackground = Color.Black;
            foreach (District D in C.Districts) {
                DrawDistrict(D, GRM, Origin, DistrictPen, LabelBackground, LabelForeground, NameFont, InfoFont);
            }
        }
public static void DrawDistricts ( Country C , Graphics GRM , Point Origin ) { Pen DistrictPen = new ( Color . Black , 10 ) ; Font NameFont = new ( FFamily , 24 , FontStyle . Bold | FontStyle . Italic , GraphicsUnit . Point ) ; Font InfoFont = new ( FFamily , 12 , FontStyle . Regular , GraphicsUnit . Point ) ; Color LabelForeground = Color . White ; Color LabelBackground = Color . Black ; foreach ( District D in C . Districts ) { DrawDistrict ( D , GRM , Origin , DistrictPen , LabelBackground , LabelForeground , NameFont , InfoFont ) ; } }
Draws all districts in a country
Draws all districts in a country
C
Country
Country with all the districts to draw
Country with all the districts to draw
GRM
Graphics
Graphics to draw to
Graphics to draw to
Origin
Point
Point of the given graphics that defines 0,0
Point of the given graphics that defines 0 0