private MapSettings GetMapSettings()
        {
            Pen movementPen = new Pen(Brushes.Black);

            movementPen.DashStyle = DashStyle.Dot;
            Pen linkPen = new Pen(Brushes.CornflowerBlue);

            linkPen.DashStyle = DashStyle.Dash;
            _mapSettings      = new MapSettings(200, 8, (double)tkScale.Value / 10, Color.AntiqueWhite, Color.Black, movementPen, linkPen);

            _mapSettings.OnGetNodeBrush = OnGetNodeBrush;
            _mapSettings.OnGetLinkPen   = OnGetLinkPen;

            return(_mapSettings);
        }
Beispiel #2
0
 public NodeViewer(List <Zone> zones, MapSettings mapSettings)
 {
     _zones.Clear();
     _zones.AddRange(zones);
     _mapSettings = mapSettings;
 }
Beispiel #3
0
 public NodeViewer(Zone zone, MapSettings mapSettings)
 {
     _zones.Clear();
     _zones.Add(zone);
     _mapSettings = mapSettings;
 }