Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public NodeViewer(List <Zone> zones, MapSettings mapSettings)
 {
     _zones.Clear();
     _zones.AddRange(zones);
     _mapSettings = mapSettings;
 }
Exemplo n.º 3
0
 public NodeViewer(Zone zone, MapSettings mapSettings)
 {
     _zones.Clear();
     _zones.Add(zone);
     _mapSettings = mapSettings;
 }