protected void NextClick(object sender, EventArgs e) { if (CurrentDiv != ActiveDiv.Final) { switch (CurrentDiv) { case ActiveDiv.TrialSelect: if (TrialSelectView.IsExpressInstall()) { GoShopClick(sender, e); } break; case ActiveDiv.Shopinfo: if (!ShopinfoView.Validate()) { return; } ShopinfoView.SaveData(); if (!(Demo.IsDemoEnabled || TrialService.IsTrialEnabled || SaasDataService.IsSaasEnabled)) { if (!ShopinfoView.ActiveLic) { ShopinfoView.LoadData(); return; } } break; case ActiveDiv.Finance: if (!FinanceView.Validate()) { return; } FinanceView.SaveData(); break; case ActiveDiv.Payment: if (!PaymentView.Validate()) { return; } PaymentView.SaveData(); break; case ActiveDiv.Shipping: if (!ShippingView.Validate()) { return; } ShippingView.SaveData(); break; case ActiveDiv.OpenidParagraf: if (!OpenidParagrafView.Validate()) { return; } OpenidParagrafView.SaveData(); break; case ActiveDiv.NotifyParagraf: if (!NotifyParagrafView.Validate()) { return; } NotifyParagrafView.SaveData(); break; case ActiveDiv.Final: return; } var temp = (int)CurrentDiv; temp++; Response.Redirect(UrlService.GetAbsoluteLink("install/default.aspx") + "?step=" + ((ActiveDiv)temp).ToString()); } }