/// <summary> /// Validate Page /// </summary> /// <param name="currentIndex">current index</param> internal override int ValidatePage(int currentIndex) { // TODO: bool status = false; System.Resources.ResourceManager resourceManager = new System.Resources.ResourceManager(typeof(CreateiFolder)); if (this.CreateDefault.Checked == false) { status = true; } else if (upload) // Create iFolder { if (ifws.GetLimitPolicyStatus(domainInfo.ID) == 1) { iFolderWeb ifolder = null; ifolder = CreateDefaultiFolder(this.sslCheckButton.Checked); if (ifolder != null) { status = true; this.simws.DefaultAccount(domainInfo.ID, ifolder.ID); } } else { MyMessageBox mmb = new MyMessageBox(resourceManager.GetString("ifolderlimiterror"), resourceManager.GetString("errorTitle"), string.Empty, MyMessageBoxButtons.OK, MyMessageBoxIcon.Error); mmb.ShowDialog(); status = true; } } else // Download iFolder { iFolderWeb ifolder = this.ifws.GetMinimaliFolder(this.defaultiFolderID, 1); if (ifolder != null) { status = DownloadiFolder(ifolder); } else { status = false; } } if (status == true) { return(base.ValidatePage(currentIndex)); } else { return(currentIndex); } }