public ViewResult RsvpForm(GuestResponce guest) { if (guestConteiner == null && calk == null) { guestConteiner = new GuestContainer(); calk = new StandartCalculate(guestConteiner); } guestConteiner.addGuest(guest); return(View("Thanks", guest)); }
void ReleaseDesignerOutlets() { if (DealerBtn != null) { DealerBtn.Dispose(); DealerBtn = null; } if (DealerCodeTxt != null) { DealerCodeTxt.Dispose(); DealerCodeTxt = null; } if (DealerContainer != null) { DealerContainer.Dispose(); DealerContainer = null; } if (DealerGetStartBtn != null) { DealerGetStartBtn.Dispose(); DealerGetStartBtn = null; } if (EmailPhone != null) { EmailPhone.Dispose(); EmailPhone = null; } if (EmailRadioBtn != null) { EmailRadioBtn.Dispose(); EmailRadioBtn = null; } if (GetStartBtn != null) { GetStartBtn.Dispose(); GetStartBtn = null; } if (GuestBtn != null) { GuestBtn.Dispose(); GuestBtn = null; } if (GuestContainer != null) { GuestContainer.Dispose(); GuestContainer = null; } if (InitialContainer != null) { InitialContainer.Dispose(); InitialContainer = null; } if (LastNameTxt != null) { LastNameTxt.Dispose(); LastNameTxt = null; } if (LoginGirlImg != null) { LoginGirlImg.Dispose(); LoginGirlImg = null; } if (OverLayView != null) { OverLayView.Dispose(); OverLayView = null; } if (PhoneRadioBtn != null) { PhoneRadioBtn.Dispose(); PhoneRadioBtn = null; } if (scrollview != null) { scrollview.Dispose(); scrollview = null; } if (txtZip != null) { txtZip.Dispose(); txtZip = null; } }
public StandartCalculate(GuestContainer guestContainer) { this.guestContainer = guestContainer; }