Esempio n. 1
0
        private void btnDelTrain_Click(object sender, EventArgs e)
        {
            TrainCtrl tc = new TrainCtrl();

            tc.delTrain(tbTrainName.Text);
            this.Close();
        }
Esempio n. 2
0
        private void btnFinish_Click(object sender, EventArgs e)
        {
            TrainCtrl tc = new TrainCtrl();

            tc.saveTrain(train);
            this.Close();
        }
        private void ManageTimetableForm_Load(object sender, EventArgs e)
        {
            TrainCtrl tc = new TrainCtrl();

            dtpTime.CustomFormat = "yyyy-MM-dd HH:mm";
            List <object[]> trainList = tc.loadTrainName();

            for (int i = 0; i < trainList.Count; i++)
            {
                lbTrain.Items.Add(trainList[i][0]);
            }
        }