fix problems

This commit is contained in:
younes elhaddoury
2026-01-30 10:14:40 +01:00
parent deaa68880a
commit 72cb729d7a
10 changed files with 225 additions and 112 deletions

View File

@@ -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)