Load() 공개 메소드

public Load ( int numberToLoad ) : void
numberToLoad int
리턴 void
예제 #1
0
		public void Add()
		{
			var dataModel = new MovieDataModel();
			dataModel.Load(20);
			Console.WriteLine("Data Loaded " + DateTime.Now);
			DataContext = dataModel.Movies;
		}
예제 #2
0
        public MovieListView()
        {
            DataContext = new MovieListViewModel();

            HoneyDoList          = new HoneyDoListView();
            SelectedMovieClasses = new List <Genre>();

            Movies = new ObservableCollection <MovieViewModel>();
            var dataModel = new MovieDataModel();

            dataModel.Load(5);
            Movies   = dataModel.Movies;
            MyString = "Test string";

            InterestingStuff = new InterestingView();

            AddressView = new AddressView()
            {
                Number = "4751", Street = "Wilshire Blvd", City = "LA", State = "CA", Zip = "90010"
            };

            Movies2 = Movies;

            Time = DateTime.Now;
            Date = DateTime.Now;

            CanChangeStyle = true;

            TestEntry2 = "Test Entry. This is a sample of some very long text.";
        }
        public void Add()
        {
            var dataModel = new MovieDataModel();

            dataModel.Load(20);
            Console.WriteLine("Data Loaded " + DateTime.Now);
            DataContext = dataModel.Movies;
        }
예제 #4
0
        public MyObject(string name)
        {
            Name = name;

            Movies = new ObservableCollection <MovieViewModel>();
            var dataModel = new MovieDataModel();

            dataModel.Load(25);
            Movies = dataModel.Movies;
        }
예제 #5
0
        public MovieListView()
        {
            Movies = new ObservableCollection <MovieView>();
            var dataModel = new MovieDataModel();

            dataModel.Load();

            foreach (var movie in dataModel.Movies)
            {
                Movies.Add(new MovieView()
                {
                    DataContext = movie
                });
            }
        }
예제 #6
0
//		[List]
//		public Genre Genre { get; set; }

        public MovieListView()
        {
            DataContext = new MovieListViewModel();            // { TestEntry = "TestEntry string" };


            HoneyDoList = new HoneyDoListView();

            var enumType  = typeof(Genre);
            var enumItems = from field in enumType.GetFields()
                            where field.IsLiteral
                            select EnumExtensions.GetDescriptionValue(field.Name, enumType);

            MovieClasses = new List <string>(enumItems.ToList());

            Movies = new ObservableCollection <MovieViewModel>();
            var dataModel = new MovieDataModel();

            dataModel.Load();
            Movies   = dataModel.Movies;
            MyString = "Test string";

            InterestingStuff = new InterestingView();

            Location = new CLLocationCoordinate2D(-33.867139, 151.207114);

            DynamicView = new View1();
            AddressView = new AddressView()
            {
                Number = "4751", Street = "Wilshire Blvd", City = "LA", State = "CA", Zip = "90010"
            };
            WebSamples = new WebSamples();

////			foreach(var movie in dataModel.Movies)
////			{
////				Movies.Add(new MovieView() { DataContext = movie });
////			}
//
//Movies2 = Movies;

            Time = DateTime.Now;
            Date = DateTime.Now;

            CanChangeStyle = true;
        }
예제 #7
0
//		[Inline]
//		public Genre Genre { get; set; }

        public MovieListView()
        {
            DataContext = new MovieListViewModel();            // { TestEntry = "TestEntry string" };

            HoneyDoList = new HoneyDoList();

            Movies2 = new ObservableCollection <MovieViewModel>();
            var dataModel = new MovieDataModel();

            dataModel.Load();
            Movies2  = dataModel.Movies;
            MyString = "Test string";

            InterestingStuff = new InterestingView();

            Location = new CLLocationCoordinate2D(-33.867139, 151.207114);

            DynamicView    = new View1();
            ElementAPIView = new ElementAPIView();
            AddressView    = new AddressView()
            {
                Number = "4751", Street = "Wilshire Blvd", City = "LA", State = "CA", Zip = "90010"
            };
            WebSamples = new WebSamples();

////			foreach(var movie in dataModel.Movies)
////			{
////				Movies.Add(new MovieView() { DataContext = movie });
////			}
//
//Movies2 = Movies;

            Time = DateTime.Now;
            Date = DateTime.Now;

            CanChangeStyle = true;
        }
예제 #8
0
		public MyObject(string name)
		{
			Name = name;

			Movies = new ObservableCollection<MovieViewModel>();
			var dataModel = new MovieDataModel();
			dataModel.Load(25);
			Movies =dataModel.Movies;
		}
예제 #9
0
		public MovieListView()
		{
			DataContext = new MovieListViewModel();
			
			HoneyDoList = new HoneyDoListView();
			SelectedMovieClasses = new List<Genre>();

			Movies = new ObservableCollection<MovieViewModel>();
			var dataModel = new MovieDataModel();
			dataModel.Load(5);
			Movies =dataModel.Movies;
			MyString = "Test string";

			InterestingStuff = new InterestingView();

			AddressView = new AddressView() {Number = "4751", Street ="Wilshire Blvd", City ="LA", State="CA", Zip ="90010" };

			Movies2 = Movies;
		
			Time = DateTime.Now;
			Date = DateTime.Now;
			
			CanChangeStyle = true;

			TestEntry2 = "Test Entry. This is a sample of some very long text.";
		}
예제 #10
0
//		[Inline]
//		public Genre Genre { get; set; }

		public MovieListView()
		{
			DataContext = new MovieListViewModel();// { TestEntry = "TestEntry string" };
			
			HoneyDoList = new HoneyDoList();

			Movies2 = new ObservableCollection<MovieViewModel>();
			var dataModel = new MovieDataModel();
			dataModel.Load();
			Movies2 =dataModel.Movies;
			MyString = "Test string";

InterestingStuff = new InterestingView();
			
			Location = new CLLocationCoordinate2D(-33.867139,151.207114);

DynamicView = new View1();
			ElementAPIView = new ElementAPIView();
			AddressView = new AddressView() {Number = "4751", Street ="Wilshire Blvd", City ="LA", State="CA", Zip ="90010" };
			WebSamples = new WebSamples();

////			foreach(var movie in dataModel.Movies)
////			{
////				Movies.Add(new MovieView() { DataContext = movie });
////			}
//
//Movies2 = Movies;
		
			Time = DateTime.Now;
			Date = DateTime.Now;
			
			CanChangeStyle = true;
		}
예제 #11
0
//		[List]
//		public Genre Genre { get; set; }

		public MovieListView()
		{
			DataContext = new MovieListViewModel();// { TestEntry = "TestEntry string" };
			

			HoneyDoList = new HoneyDoListView();

			var enumType = typeof(Genre);
            var enumItems = from field in enumType.GetFields()
                            where field.IsLiteral
                            select EnumExtensions.GetDescriptionValue(field.Name, enumType);

			MovieClasses = new List<string>(enumItems.ToList());

			Movies = new ObservableCollection<MovieViewModel>();
			var dataModel = new MovieDataModel();
			dataModel.Load();
			Movies =dataModel.Movies;
			MyString = "Test string";

InterestingStuff = new InterestingView();
			
			Location = new CLLocationCoordinate2D(-33.867139,151.207114);

DynamicView = new View1();
			AddressView = new AddressView() {Number = "4751", Street ="Wilshire Blvd", City ="LA", State="CA", Zip ="90010" };
			WebSamples = new WebSamples();

////			foreach(var movie in dataModel.Movies)
////			{
////				Movies.Add(new MovieView() { DataContext = movie });
////			}
//
//Movies2 = Movies;
		
			Time = DateTime.Now;
			Date = DateTime.Now;
			
			CanChangeStyle = true;
		}