private void UpdateRecipientLabelContent() { Bill bill = (Bill)RecipientList.SelectedItem; Customer customer = UsersORM.GetCustomerByGuid(bill.CustomerId); int updatedBillBalance = BillORM.GetBillbyBillNumber(bill.BillNumber).Balance; RecipientLabel.Content = String.Format("Recipient: {0} {1} \nBalance: {2:n} Kč", customer.Name, customer.SurName, updatedBillBalance); }
// Products overview private void ViewProductDetails_Click(object sender, RoutedEventArgs e) { Button b = sender as Button; Bill bill = BillORM.GetBillbyBillNumber((int)b.CommandParameter); ProductWindow productWindow = new ProductWindow(activeOfficial, bill); productWindow.Show(); Close(); }