Esempio n. 1
0
 private void 修改ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     //list_BinoStation[L_AddSt.SelectedIndex];
     using (FormModif fM = new FormModif(L_AddSt.SelectedIndex, list_BinoStation[L_AddSt.SelectedIndex]))
     {
         fM.changeValues += fM_changeValues;
         fM.ShowDialog();
     }
 }
Esempio n. 2
0
        void fM_changeValues(object sender, EventArgs e)
        {
            FormModif f2 = (FormModif)sender;

            FormModif.index_BinoStation a = f2.Form2Value;
            list_BinoStation[a.index].FromStation.Name     = a.biStation.FromStation.Name;
            list_BinoStation[a.index].FromStation.Location = a.biStation.FromStation.Location;
            list_BinoStation[a.index].ToStation.Name       = a.biStation.ToStation.Name;
            list_BinoStation[a.index].ToStation.Location   = a.biStation.ToStation.Location;
            refreshListBox(list_BinoStation);
            //throw new NotImplementedException();
        }