Пример #1
0
        /// <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();
        }
Пример #2
0
 public Bus(PO.Bus b, int index = 0)
 {
     InitializeComponent();
     Index       = index;
     DataContext = MyBus = b;
 }
Пример #3
0
 public BusViewInfo(PO.Bus bus)
 {
     InitializeComponent();
     textBlockBusInfo.Text = bus.ToString();
 }