private void ShowTrainSessionButton_Click(object sender, EventArgs e)
        {
            dataGUI dataGui = new dataGUI();

            dataGui.SetTrainSession((TrainSession)ShowComboBox.SelectedItem);
            RunDataGUI(dataGui);
        }
コード例 #2
0
        private void ShowTrainSessionButton_Click(object sender, EventArgs e)
        {
            dataGUI      dataGui = new dataGUI();
            TrainSession session = null;

            foreach (TrainSession s in AllSessions)
            {
                if (s.BeginTime == ShowComboBox.SelectedItem)
                {
                    session = s;
                }
            }
            if (session != null)
            {
                dataGui.SetTrainSession(session);
                RunDataGUI(dataGui);
            }
        }