private void finalizeButton_Click(object sender, EventArgs e) { if (breakfast == 0 && lunch == 0 && dinner == 0 && cleaning == "0" && towel == "0" && surprise == "0") { foodSupplyCheckBox.Checked = true; } updateButton.Enabled = true; FinalizePayment finalizebil = new FinalizePayment(); finalizebil.totalAmountFromFrontend = totalAmount; finalizebil.foodBill = foodBill; if (taskFinder) { finalizebil.paymentComboBox.SelectedItem = FPayment.Replace(" ", string.Empty); finalizebil.phoneNComboBox.Text = FCnumber; finalizebil.monthComboBox.SelectedItem = FcardExpOne; finalizebil.yearComboBox.SelectedItem = FcardExpTwo; finalizebil.cvcComboBox.Text = FCardCVC; } finalizebil.ShowDialog(); finalizedTotalAmount = finalizebil.FinalTotalFinalized; paymentType = finalizebil.PaymentType; paymentCardNumber = finalizebil.PaymentCardNumber; MM_YY_Of_Card = finalizebil.MM_YY_Of_Card1; CVC_Of_Card = finalizebil.CVC_Of_Card1; CardType = finalizebil.CardType1; if (!editClicked) { submitButton.Visible = true; } }