/// <summary> /// an event to show the trips /// </summary> private void ShowTrips_Click(object sender, RoutedEventArgs e) { PO.Bus b = ((Button)sender).DataContext as PO.Bus; BusOnTrip busOn = new BusOnTrip(b.LicensNumber, true, Index); busOn.ShowDialog(); }
/// <summary> /// an event to open the trips window /// </summary> private void Trip_Click(object sender, RoutedEventArgs e) { BusOnTrip busOnTrips = new BusOnTrip(MyLine.ID.ToString(), false, 0, CanModified); busOnTrips.Show(); }