コード例 #1
0
        /// <summary>
        /// Defines actions to be performed when a  button is pressed
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Delete_Click(object sender, RoutedEventArgs e)
        {
            Button a = (Button)sender;

            tempStation = (BO.LineStation)a.DataContext;
            bl.DeleteLineStation(tempStation.Code, managingLine.Id, tempStation.NumberInLine);
            stopsList.ItemsSource = managingLine.Stops;
            stopsList.Items.Refresh();
        }