public void FillSectionParent(string id) { SectionParent.DataTextField = "TITLE"; SectionParent.DataValueField = "ID"; if (id.Length > 0) { SectionParent.DataSource = DatabaseConnection.CreateDataset(string.Format("SELECT ID,TITLE FROM PROJECT_SECTION WHERE ID<>{0} AND IDRIF={1}", id, prjID)); } else { SectionParent.DataSource = DatabaseConnection.CreateDataset(string.Format("SELECT ID,TITLE FROM PROJECT_SECTION WHERE IDRIF={0}", prjID)); } SectionParent.DataBind(); SectionParent.Items.Insert(0, new ListItem("Sezione principale", "0")); }
public static SectionInternal Create(SectionParent parentSection, string sectionRole, int sectionIndex) { return(new SectionInternal(parentSection.IsRowSection, parentSection, sectionRole, sectionIndex)); }
private SectionInternal(bool isRowSection, SectionParent parentSection, string sectionRole, int sectionIndex) : base(isRowSection, sectionRole, sectionIndex) { _parentSection = parentSection; }