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 continueButton_Click(object sender, RoutedEventArgs e) { FullPaymentInvoice fullInvoice = new FullPaymentInvoice(); fullInvoice.eventIdBox.Text = EventIdBlockText.Text; fullInvoice.GienMoneyBox.Text = GivenMoneyBox.Text; fullInvoice.retunMoneyBox.Text = EventCalculation.returnMoney; fullInvoice.paymentDateBox.Text = EventCalculation.getPaymentDate(); fullInvoice.ShowDialog(); this.Close(); }
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(); }
private void continueButton_Click(object sender, RoutedEventArgs e) { EventCalculation.stage = stageComboBox.Text; EventCalculation.homelight = homeLightComboBox.Text; EventCalculation.homelight = homeLightDurationCombBox.Text; EventCalculation.streetlight = streetLightComboBox.Text; EventCalculation.streetlightDeuration = streetlightDeuration.Text; EventCalculation.gate = gateTextbox.Text; EventCalculation.planaquin = planaquinComboBox.Text; EventCalculation.totalDecorationCost(stageComboBox.Text, homeLightComboBox.Text, homeLightDurationCombBox.Text, streetLightComboBox.Text, streetlightDeuration.Text, gateTextbox.Text, planaquinComboBox.Text); Centers cn = new Centers(); this.Close(); cn.ShowDialog(); }
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(); }
private void addVatDiscountButton_Click_1(object sender, RoutedEventArgs e) { EventCalculation.givenMoney = GivenMoneyBox.Text; EventCalculation.returnMoney = ReturnMoneyBox.Text; string moneyReturn = EventCalculation.returnMoneyCalculation(Convert.ToInt32(GivenMoneyBox.Text), Convert.ToInt32(RemainingMoneyBox.Text)); if (moneyReturn != null) { ReturnMoneyBox.Text = moneyReturn; } else { MessageBox.Show("Given Money Is Short"); } }
private void confirmButton_Click(object sender, RoutedEventArgs e) { EventCalculation.customerName = nameTextBox.Text; EventCalculation.customerContactNumber = contactNoTextBox.Text; EventCalculation.customerEmail = emailTextBox.Text; EventCalculation.customerAddress = addressTextBox.Text; EventCalculation.advancePay = advancePayTextBox.Text; CreateEventInvoice CEI = new CreateEventInvoice(); CEI.eventIdTextBlock.Text = eventIdTextBox.Text; CEI.eventDateTextBlock.Text = EventCalculation.eventDate; CEI.startTimeTextBlock.Text = EventCalculation.eventStartTime; CEI.photographyTextBlock.Text = EventCalculation.getPhotographyCost(); CEI.decorationTextBlock.Text = EventCalculation.getDecorationCost(); CEI.centerTextBlock.Text = EventCalculation.getCenterCost(); CEI.vatTextBlock.Text = EventCalculation.getVat() + " % "; CEI.discountTextBlock.Text = EventCalculation.getDiscount() + " % "; CEI.totalcostTextBlock.Text = EventCalculation.getTotalCost(); CEI.advancePaymentTextBlock.Text = EventCalculation.advancePay; CEI.remainingTextBlock.Text = EventCalculation.CalculateRemaining(); CEI.Show(); Close(); }
private void continueButton_Click(object sender, RoutedEventArgs e) { TotalCost = 0; EventCalculation.eventStartTime = Convert.ToString(startTimeTextBox.Text); EventCalculation.eventEndTime = Convert.ToString(EndTimeTextBox.Text); EventCalculation.printedPhotos = Convert.ToString(PrintedPhotoTextBox.Text); EventCalculation.eachPhotoCost = Convert.ToString(eachPhotoCostTextBox.Text); int duration = EventCalculation.Duration(Convert.ToDouble(startTimeTextBox.Text), Convert.ToDouble(EndTimeTextBox.Text)); { SqlConnection connection = new SqlConnection("Server=Tanmoy-PC; Database=Wedding Management; User Id=sa; Password=1238628257"); connection.Open(); SqlCommand cmd = new SqlCommand("SELECT Id, Name,Email,ContactNumber,Salary FROM AddedPhotographer", connection); SqlDataReader reader = cmd.ExecuteReader(); List <Members> SearchList = new List <Members>(); if (reader.HasRows) { while (reader.Read()) { SearchList.Add(new Members(reader.GetString(0), reader.GetString(1), reader.GetString(2), reader.GetString(3), reader.GetString(4))); TotalCost = TotalCost + (Convert.ToDouble(reader.GetString(4)) * duration); } tempphotographyCost = TotalCost + (Convert.ToDouble(PrintedPhotoTextBox.Text) * Convert.ToDouble(eachPhotoCostTextBox.Text)); } connection.Close(); EventCalculation.photographyCost = tempphotographyCost; MemberServices clr = new MemberServices(); int j = clr.ClearTable(); Hide(); EventDecoration decor = new EventDecoration(); DecorationService DS = new DecorationService(); connection.Open(); decor.Show(); } }
private void addVatDiscountButton_Click_1(object sender, RoutedEventArgs e) { totalCostTextBlock.Text = EventCalculation.CalculationWithVat(vatTextBox.Text, discountTextBox.Text); }