示例#1
0
 public void MetadataInit()
 {
     _columns                  = new columnCollection();
     _contenttypes             = new contenttypeCollection();
     _listtemplates            = new listtemplateCollection();
     _ContenttypeColumns       = new ContenttypeColumnCollection();
     _ListtemplateContenttypes = new ListtemplateContenttypeCollection();
     _ListtemplateColumns      = new ListtemplateColumnCollection();
 }
示例#2
0
        private void init()
        {
            _ListtemplateColumns = new List <ListtemplateColumn>();
            listtemplateCollection            wlisttemplates           = new listtemplateCollection();
            ListtemplateContenttypeCollection ListtemplateContenttypes = new ListtemplateContenttypeCollection();

            foreach (listtemplate wlisttemplate in wlisttemplates.getAllListtemplates.Values)
            {
                foreach (ListtemplateContenttype wListtemplateContenttype in ListtemplateContenttypes.getAllListtemplateContenttypes.Values)
                {
                    if (wListtemplateContenttype.ListNavn_id == wlisttemplate.id)
                    {
                        contenttypeCollection wcontenttypes = new contenttypeCollection();
                        contenttype           wcontenttype  = wcontenttypes.getContenttype(wListtemplateContenttype.TypeNavn_id);
                        foreach (ContenttypeColumn wContenttypeColumn in wcontenttype.ContenttypeColumns.Values)
                        {
                            ListtemplateColumn wListtemplateColumn = new ListtemplateColumn(wlisttemplate.id, wContenttypeColumn);
                            _ListtemplateColumns.Add(wListtemplateColumn);
                        }
                    }
                }
            }
        }
        private void init_contenttype()
        {
            contenttypeCollection wcontenttypeCollection = new contenttypeCollection();

            _contenttype = wcontenttypeCollection.getContenttype(_TypeNavn_id);
        }