Esempio n. 1
0
        private void skipButton_Click(object sender, RoutedEventArgs e)
        {
            EventCostCalculation EC = new EventCostCalculation();

            EC.photographyCostBox.Text = Convert.ToString(EventCalculation.photographyCost);
            EC.decorationCostBox.Text  = Convert.ToString(EventCalculation.decorationCost);
            EC.CenterCostBox.Text      = Convert.ToString(EventCalculation.totalcenterCost);
            EC.withoutVatBox.Text      = EventCalculation.CalculationWithoutVat(EventCalculation.photographyCost, EventCalculation.decorationCost, EventCalculation.totalcenterCost);
            this.Close();
            EC.ShowDialog();
        }
Esempio n. 2
0
        private void continueButton_Click(object sender, RoutedEventArgs e)
        {
            CenterService c = new CenterService();

            EventCalculation.totalcenterCost = c.SearchCenterCost(SearchCenterId);
            EventCalculation.centerId        = SearchCenterId;
            EventCostCalculation EC = new EventCostCalculation();

            EC.photographyCostBox.Text = Convert.ToString(EventCalculation.photographyCost);
            EC.decorationCostBox.Text  = Convert.ToString(EventCalculation.decorationCost);
            EC.CenterCostBox.Text      = Convert.ToString(EventCalculation.totalcenterCost);
            EC.withoutVatBox.Text      = EventCalculation.CalculationWithoutVat(EventCalculation.photographyCost, EventCalculation.decorationCost, EventCalculation.totalcenterCost);
            this.Close();
            EC.ShowDialog();
        }