Beispiel #1
0
        public static ObservableCollection <CreativeDocumentRepresentation> InstallDocumentTypes(DocumentUsage filter, List <Type> types)
        {
            ObservableCollection <CreativeDocumentModel>          initial = new ObservableCollection <CreativeDocumentModel>(CreativeDocumentModel.GetDocumentControlInfo(types));
            ObservableCollection <CreativeDocumentRepresentation> final   = new ObservableCollection <CreativeDocumentRepresentation>();

            foreach (CreativeDocumentModel documentModel in initial)
            {
                final.Add(documentModel.ToDocumentRep());
            }
            ObservableCollection <CreativeDocumentRepresentation> final_final = new ObservableCollection <CreativeDocumentRepresentation>();

            foreach (CreativeDocumentRepresentation docModel in final)
            {
                if (docModel.Usage == filter)
                {
                    final_final.Add(docModel);
                }
            }
            return(final_final);
        }
Beispiel #2
0
        public static ObservableCollection <CreativeDocumentRepresentation> InstallDocumentTypes(List <Type> types)
        {
            ObservableCollection <CreativeDocumentModel>          initial = new ObservableCollection <CreativeDocumentModel>(CreativeDocumentModel.GetDocumentControlInfo(types));
            ObservableCollection <CreativeDocumentRepresentation> final   = new ObservableCollection <CreativeDocumentRepresentation>();

            foreach (CreativeDocumentModel documentModel in initial)
            {
                final.Add(documentModel.ToDocumentRep());
            }
            return(final);
        }