コード例 #1
0
        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"));
        }
コード例 #2
0
ファイル: SectionInternal.cs プロジェクト: phreed/GMac
 public static SectionInternal Create(SectionParent parentSection, string sectionRole, int sectionIndex)
 {
     return(new SectionInternal(parentSection.IsRowSection, parentSection, sectionRole, sectionIndex));
 }
コード例 #3
0
ファイル: SectionInternal.cs プロジェクト: phreed/GMac
 private SectionInternal(bool isRowSection, SectionParent parentSection, string sectionRole, int sectionIndex)
     : base(isRowSection, sectionRole, sectionIndex)
 {
     _parentSection = parentSection;
 }