Ejemplo n.º 1
0
 public SupplyOrderConfirmationWindow(SupplyOrder newOrder, Supplier supplier, SupplyOrderWindow window)
 {
     InitializeComponent();
     OrderEntriesListBox.ItemsSource = newOrder.OrderEntries;
     IdLabel.Content           = "SupplyOrder: " + newOrder.Id;
     SupplierNameLabel.Content = supplier.Name;
     ContactLabel.Content      = supplier.ContactInfo;
     TotalLabel.Content        = newOrder.Total;
     Cash_CreditLabel.Content  = newOrder.Paid ? "Cash" : "Credit";
     _observer = window;
     VerifyButton.Focus();
 }
 private void NewButton_Click(object sender, RoutedEventArgs e)
 {
     SupplyOrderWindow newWindow = new SupplyOrderWindow();
     newWindow.AddObserver(this);
     newWindow.Show();
 }