Example #1
0
        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);
        }
Example #2
0
        // 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();
        }