Exemplo n.º 1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            typeTrips       = TypeTripDAO.Get();
            transports      = TransportDAO.Get();
            typeChosen      = typeTrips[0];
            transportChosen = transports[0];

            statusChosen.Text = "Đang đi";

            this.DataContext = new { type = typeChosen, transport = transportChosen };
        }