Esempio n. 1
0
 public void MetadataInit()
 {
     _columns                  = new columnCollection();
     _contenttypes             = new contenttypeCollection();
     _listtemplates            = new listtemplateCollection();
     _ContenttypeColumns       = new ContenttypeColumnCollection();
     _ListtemplateContenttypes = new ListtemplateContenttypeCollection();
     _ListtemplateColumns      = new ListtemplateColumnCollection();
 }
Esempio n. 2
0
        private void inittype()
        {
            ListtemplateContenttypeCollection MASTERlisttypes = new ListtemplateContenttypeCollection();

            _ListtemplateContenttypes = new List <ListtemplateContenttype>();

            foreach (ListtemplateContenttype MASTERlisttype in MASTERlisttypes.getAllListtemplateContenttypes.Values)
            {
                if (MASTERlisttype.ListNavn_id == _id)
                {
                    _ListtemplateContenttypes.Add(MASTERlisttype);
                }
            }
        }
Esempio n. 3
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);
                        }
                    }
                }
            }
        }