Example #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();
        }
        private void addCenterButton_Click(object sender, RoutedEventArgs e)
        {
            EventCalculation.centerName     = centerNameTextBox.Text;
            EventCalculation.centerLoaction = locationTextBox.Text;
            EventCalculation.eventStartTime = startTimeTextBox.Text;
            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);
            Close();
            EC.Show();
        }
Example #3
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();
        }