protected void Page_Load(object sender, EventArgs e) { this.hidSubCatIndex.Value = ""; if (PubEntAdminManager.TamperProof) { if (PubEntAdminManager.ContainURLQS("subcatid")) { this.SubcatID = System.Convert.ToInt32(PubEntAdminManager.GetURLQS("subcatid")); } } else { if (Request.QueryString["subcatid"] != null) { this.SubcatID = System.Convert.ToInt32(Request.QueryString["subcatid"].ToString()); } } if (PubEntAdminManager.TamperProof) { if (PubEntAdminManager.ContainURLQS("mode")) { this.SubcatMode = (PubEntAdminManager.GetURLQS("mode")); } } else { if (Request.QueryString["mode"] != null) { this.SubcatMode = (Request.QueryString["mode"].ToString()); } } if (!Page.IsPostBack) { this.SubCatWizard.ActiveStepIndex = 0; this.CategoryBindOptions(); if (this.SubcatID > 0) { this.IncrementWizardPage(); EditSubcat l_EditSubcat = ((EditSubcat)SubCategoryEditStep.ContentTemplateContainer. FindControl("EditSubcat1")); l_EditSubcat.BindOptions(); l_EditSubcat.SubCatID = this.SubcatID; l_EditSubcat.BindValues(); this.IncrementWizardPage(); PubEntAdmin.BLL.SubCat l_SubCat = PE_DAL.GetSubCatBySubCatID2(this.SubcatID); ((Label)SubCategoryAddEditStep.ContentTemplateContainer.FindControl("lblCategoryStep")).Text = ((Label)SubCategoryEditStep.ContentTemplateContainer.FindControl("lblCategoryStep2")).Text = l_SubCat.AssignedCatName; this.AddSubCatBindOptions(l_SubCat.AssignedCatID); this.EditSubCatBindOptions(l_SubCat.AssignedCatID); ((Button)SubCatWizard.FindControl("FinishNavigationTemplateContainerID").FindControl("FinishButton")).Visible = false; } else { } } List <TabItem> l = new List <TabItem>(); TabItem t1 = new TabItem(0, "Add", "LookupMgmt.aspx"); TabItem t2 = new TabItem(1, "Edit", "LookupMgmt.aspx"); l.Add(t1); l.Add(t2); ((TabStrip)SubCategoryAddEditStep.ContentTemplateContainer.FindControl("TabStrip1")).TabSource = l; ((Button)SubCatWizard.FindControl("StepNavigationTemplateContainerID").FindControl("StepPreviousButton")).Visible = false; ((Button)SubCatWizard.FindControl("FinishNavigationTemplateContainerID").FindControl("FinishPreviousButton")).Visible = false; this.SecVal(); }
protected void Page_Load(object sender, EventArgs e) { this.hidSubCatIndex.Value = ""; if (PubEntAdminManager.TamperProof) { if (PubEntAdminManager.ContainURLQS("subcatid")) { this.SubcatID = System.Convert.ToInt32(PubEntAdminManager.GetURLQS("subcatid")); } } else { if (Request.QueryString["subcatid"] != null) { this.SubcatID = System.Convert.ToInt32(Request.QueryString["subcatid"].ToString()); } } if (PubEntAdminManager.TamperProof) { if (PubEntAdminManager.ContainURLQS("mode")) { this.SubcatMode = (PubEntAdminManager.GetURLQS("mode")); } } else { if (Request.QueryString["mode"] != null) { this.SubcatMode = (Request.QueryString["mode"].ToString()); } } if (!Page.IsPostBack) { this.SubCatWizard.ActiveStepIndex = 0; this.CategoryBindOptions(); if (this.SubcatID > 0) { this.IncrementWizardPage(); EditSubcat l_EditSubcat = ((EditSubcat)SubCategoryEditStep.ContentTemplateContainer. FindControl("EditSubcat1")); l_EditSubcat.BindOptions(); l_EditSubcat.SubCatID = this.SubcatID; l_EditSubcat.BindValues(); this.IncrementWizardPage(); PubEntAdmin.BLL.SubCat l_SubCat = PE_DAL.GetSubCatBySubCatID2(this.SubcatID); ((Label)SubCategoryAddEditStep.ContentTemplateContainer.FindControl("lblCategoryStep")).Text = ((Label)SubCategoryEditStep.ContentTemplateContainer.FindControl("lblCategoryStep2")).Text = l_SubCat.AssignedCatName; this.AddSubCatBindOptions(l_SubCat.AssignedCatID); this.EditSubCatBindOptions(l_SubCat.AssignedCatID); } else { } } this.SecVal(); }
public bool Contains(SubCat value) { return(List.Contains(value)); }
public void Remove(SubCat value) { List.Remove(value); }
public void Insert(int index, SubCat value) { List.Insert(index, value); }
public int IndexOf(SubCat value) { return(List.IndexOf(value)); }
public int Add(SubCat value) { return(List.Add(value)); }