Beispiel #1
0
        //opens the billing for this appointment
        private void BillingButton_Click(object sender, RoutedEventArgs e)
        {
            BillingWindow billingWindow = new BillingWindow(this.apptRepresenting.getPatientName(), this.apptRepresenting.getApptType(), this.apptRepresenting);

            billingWindow.Owner = this;
            billingWindow.Show();
        }
Beispiel #2
0
        private void EditButton_Click(object sender, RoutedEventArgs e)
        {
            BillingWindow parentWindow = (BillingWindow)this.Owner;
            decimal       d;
            Billing       rowToBeUpdated = (Billing)parentWindow.descriptCostDataGrid.SelectedItem;

            if (decimal.TryParse(editCostTextbox.Text, out d))
            {
                rowToBeUpdated.Description = editDescriptionTextbox.Text;
                rowToBeUpdated.Cost        = editCostTextbox.Text;
                parentWindow.descriptCostDataGrid.Items.Refresh();

                this.Close();
            }
            else
            {
                MessageBox.Show("Inavlid Numbers entered for cost, please try again");
            }
        }