Exemplo 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();
        }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 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();
        }