Example #1
0
        private void ConfigPoint_Click(object sender, RoutedEventArgs e)
        {
            wndRoadGraphConfig wrgc = new wndRoadGraphConfig();

            if ((service as TurnstileService).TurnstileGeometry == null)
            {
                wrgc = new wndRoadGraphConfig();
            }
            if (wrgc.ShowDialog() == true)
            {
                foreach (var edge in wrgc.RoadGraph.Edges)
                {
                    (service as TurnstileService).TurnstileGeometry = edge.Data;
                    break;
                }
            }
        }
 private void ConfigPoint_Click(object sender, RoutedEventArgs e)
 {
     wndRoadGraphConfig wrgc = new wndRoadGraphConfig();
     if ((service as TurnstileService).TurnstileGeometry == null)
     {
         wrgc = new wndRoadGraphConfig();
     }
     if (wrgc.ShowDialog() == true)
     {
         foreach (var edge in wrgc.RoadGraph.Edges)
         {
             (service as TurnstileService).TurnstileGeometry = edge.Data;
             break;
         }
     }
 }