protected override void OnInit(EventArgs e) { base.OnInit(e); if (_repo.HasConnection()) { try { //clear progress bar cache InstallHelper.ClearProgress(); var skinsCollection = _repo.Webservice.Skins(StarterKitGuid.ToString()); var numberOfSkins = skinsCollection.Length; this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "skinCounter", "var numberOfSkins = " + numberOfSkins, true); rep_starterKitDesigns.DataSource = skinsCollection; rep_starterKitDesigns.DataBind(); } catch (Exception ex) { LogHelper.Error <LoadStarterKitDesigns>("An error occurred initializing", ex); ShowConnectionError(); } } else { ShowConnectionError(); } }
//protected void NextStep(object sender, EventArgs e) //{ // var p = (Default)this.Page; // //InstallHelper.RedirectToNextStep(Page, Request.GetItemAsString("installStep")); //} protected override void OnInit(EventArgs e) { base.OnInit(e); if (_repo == null) { throw new InvalidOperationException("Could not find repository with id " + RepoGuid); } //clear progressbar cache //InstallHelper.ClearProgress(); if (_repo.HasConnection()) { try { var r = new org.umbraco.our.Repository(); rep_starterKits.DataSource = r.Modules(); rep_starterKits.DataBind(); } catch (Exception ex) { LogHelper.Error <LoadStarterKits>("Cannot connect to package repository", ex); CannotConnect = true; } } else { CannotConnect = true; } }
protected override void OnInit(EventArgs e) { base.OnInit(e); //clear progressbar cache InstallHelper.ClearProgress(); if (_repo.HasConnection()) { try { rep_starterKits.DataSource = _repo.Webservice.StarterKits(); rep_starterKits.DataBind(); } catch (Exception ex) { LogHelper.Error <LoadStarterKits>("Cannot connect to package repository", ex); CannotConnect = true; } } else { CannotConnect = true; } }