fix problems
This commit is contained in:
@@ -8,27 +8,19 @@ namespace SkyTeam
|
||||
{
|
||||
public MeineBuchungenPage()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
LoadBookings();
|
||||
}
|
||||
|
||||
private void LoadBookings()
|
||||
{
|
||||
|
||||
var bookings = new ObservableCollection<object>
|
||||
{
|
||||
new { BookingNumber = "SKY001", From = "FRA", To = "JFK", DepartureTime = "2026-02-01 09:00", ArrivalTime = "2026-02-01 13:30", Status = "Bestätigt" },
|
||||
new { BookingNumber = "SKY002", From = "MUC", To = "LAX", DepartureTime = "2026-02-03 14:20", ArrivalTime = "2026-02-04 08:45", Status = "Geplant" }
|
||||
};
|
||||
BookingsDataGrid.ItemsSource = bookings;
|
||||
|
||||
}
|
||||
|
||||
private void SearchBookingsButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
string from = FromFilterTextBox.Text;
|
||||
string to = ToFilterTextBox.Text;
|
||||
|
||||
MessageBox.Show($"Suche Flüge von {from} nach {to}", "Suche", MessageBoxButton.OK);
|
||||
|
||||
}
|
||||
|
||||
private void HomeButton_Click(object sender, RoutedEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user