public static BusinessCollection<ContentItem> GetData()
        {
            string filesPath = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, RESOURCE_FILES);

            BusinessCollection<ContentItem> retVal = new BusinessCollection<ContentItem>();

            ContactItem contact1 = new ContactItem("John", "Doe", "338998872323", "*****@*****.**", Path.Combine(filesPath, "contact1.png"));
            ContactItem contact2 = new ContactItem("Richard", "Roe", "338998872323", "*****@*****.**", Path.Combine(filesPath, "contact2.png"));
            ContactItem contact3 = new ContactItem("Jane", "Doe", "338998872323", "*****@*****.**", Path.Combine(filesPath, "contact3.png"));
            ContactItem contact4 = new ContactItem("Richelle", "Roe", "338998872323", "*****@*****.**", Path.Combine(filesPath, "contact4.png"));

            ContentItem item1 = new ContentItem(Path.Combine(filesPath, "image1.jpg"), Path.Combine(filesPath, "image1.jpg"), ContentItem.CONTENT_IMAGE);
            ContentItem item2 = new ContentItem(Path.Combine(filesPath, "image2.jpg"), Path.Combine(filesPath, "image2.jpg"), ContentItem.CONTENT_IMAGE);
            ContentItem item3 = new ContentItem(Path.Combine(filesPath, "image3.jpg"), Path.Combine(filesPath, "image3.jpg"), ContentItem.CONTENT_IMAGE);
            ContentItem item5 = new ContentItem(Path.Combine(filesPath, "BeanOneAlbumArt.png"), Path.Combine(filesPath, "BeanOne.mp3"), ContentItem.CONTENT_RING);
            ContentItem item6 = new ContentItem(Path.Combine(filesPath, "SlumberJackAlbumArt.png"), Path.Combine(filesPath, "SlumberJack.mp3"), ContentItem.CONTENT_RING);
            ContentItem item7 = new ContentItem(Path.Combine(filesPath, "contact1.png"), Path.Combine(filesPath, "contact1.png"), ContentItem.CONTENT_CONTACT, contact1);
            ContentItem item8 = new ContentItem(Path.Combine(filesPath, "contact2.png"), Path.Combine(filesPath, "contact2.png"), ContentItem.CONTENT_CONTACT, contact2);
            ContentItem item9 = new ContentItem(Path.Combine(filesPath, "contact3.png"), Path.Combine(filesPath, "contact3.png"), ContentItem.CONTENT_CONTACT, contact3);
            ContentItem item10 = new ContentItem(Path.Combine(filesPath, "contact4.png"), Path.Combine(filesPath, "contact4.png"), ContentItem.CONTENT_CONTACT, contact4);
            retVal.Add(item1);
            retVal.Add(item2);
            retVal.Add(item3);
            retVal.Add(item5);
            retVal.Add(item6);
            retVal.Add(item7);
            retVal.Add(item8);
            retVal.Add(item9);
            retVal.Add(item10);

            return retVal;
        }
        public LibraryContents()
        {
            this.InitializeComponent();

            presentationCollection = ContentItemsDispenser.GetData();
            LibraryItems.DataContext = "libraryContainer1";
            ICollectionView view1 = CollectionViewSource.GetDefaultView(presentationCollection);
            view1.GroupDescriptions.Add(new PropertyGroupDescription("MediaType"));
            LibraryItems.ItemsSource = view1;
        }
Example #3
0
        //
        // GET: /Dispatch/
        public ActionResult Dimensions()
        {
            BusinessCollection obj = new BusinessCollection();

            obj.list = obj.DisplayData().ToList();
            IEnumerable <Validators> ValList = obj.GetValidation().ToList();

            TempData["ValList"] = ValList;
            return(View(obj.list));
        }
Example #4
0
        public virtual void Initialize()
        {
            businessCollection = new BusinessCollection();
            map  = new Map(sceneType);
            Core = new CoreUtil(sceneType);

            Core.CoreModules = CoreModules;
            businessCollection.CoreModules = CoreModules;

            Core.Initialize();
            map.Initialize();
            businessCollection.Initialize();
        }
Example #5
0
 static void Main()
 {
     GenericCollection <BusinessEntity> businessCollection = new BusinessCollection();
     //this will work
     BusinessCollection tempCollection = (BusinessCollection)businessCollection;
 }