public void MunchChargeOnlySetup(bool isCafe, Customer customer) { bool flag = ((customer == null) || ((customer.MunchMoney <= 0M) && customer.isStudent())) || customer.isInactive(); string str = "Munch Money"; bool flag2 = false; if ((customer != null) && customer.isEmployee()) { str = "Employee Charge"; flag2 = true; } this.lblCustType.Visible = isCafe; this.lblCustTypeValue.Visible = isCafe; this.lblMealPlan.Visible = isCafe; this.lblMealPlanValue.Visible = isCafe; if (flag) { isCafe = false; } this.chkSpecial.Visible = isCafe; this.lblMMAvailable.Visible = !flag; this.lblMMAvailableLabel.Visible = !flag; this.lblPriceOfMeal.Visible = isCafe; this.txtCostPerMeal.Visible = isCafe; this.lblMeal.Visible = isCafe; this.lblMealValue.Visible = isCafe; this.lblNumberOfGuests.Visible = isCafe; this.txtNumGuests.Visible = isCafe; this.txtTotalCharge.ReadOnly = isCafe; if (isCafe) { this.txtTotalCharge.BorderStyle = BorderStyle.None; } else { this.txtTotalCharge.BorderStyle = BorderStyle.NotSet; } this.btnAddMunchCharge.Visible = !flag; this.lblTotalCharge.Visible = !flag; this.txtTotalCharge.Visible = !flag; if (flag) { this.lblEnterGuests.Text = "No " + str; } else if (isCafe) { this.lblEnterGuests.Text = "Enter Guests on " + str; } else { this.lblEnterGuests.Text = "Enter Charges on " + str; } if (flag2) { this.lblMMAvailableLabel.Text = "Current " + str + ":"; } else { this.lblMMAvailableLabel.Text = str + " Available:"; } }