예제 #1
0
        public ShowModalResult ShowModal(string station)
        {
            ShowModalResult res;

            if (!LoadStationList(station))
            {
                return(ShowModalResult.CANCEL);
            }
            m_check.Value = (!Globals.platform_schedule);
            Globals.build_station_schedule(all_stations[station_idx].station);
            FillStops();

            Centre();
            bool oldIgnore = Globals.traindir.m_ignoreTimer;

            Globals.traindir.m_ignoreTimer = true;
            m_stations.SetFocus();
            res = base.ShowModal();
            Globals.traindir.m_ignoreTimer = oldIgnore;

            return(res);
        }
예제 #2
0
 public void OnChoice(object sender, Event evt)
 {
     station_idx = m_stations.Selection;
     Globals.build_station_schedule(all_stations[station_idx].station);
     FillStops();
 }