示例#1
0
        private void BindTitle()
        {
            BPArchiveTypes bp = new BPArchiveTypes();
            DSArchive = bp.SelectArchiveTypeByID(ArchiveTypeID);

            if (DSArchive.tbl_ArchiveTypes.Count > 0)
            {
                BEArchive.tbl_ArchiveTypesRow typeRow = DSArchive.tbl_ArchiveTypes[0];
                lblTitle.Text = "Browse " + typeRow.ArchiveTypeName + "s";
                btnAdd.Text = "Add New";
            }
        }
示例#2
0
        private void GetSubTypeName()
        {
            BPArchiveTypes bp = new BPArchiveTypes();
            BEArchive dsSubTypes = bp.SelectArchiveTypeByID(ArchiveTypeID);

            if (dsSubTypes.tbl_ArchiveTypes.Count > 0)
            {
                BEArchive.tbl_ArchiveTypesRow type = dsSubTypes.tbl_ArchiveTypes[0];
                SubTypeName = type.ArchiveTypeName;
            }
        }