示例#1
0
        public ViewModel()
        {
            
            UploadNewInfoButton = new ActionCommand(UploadNewInfo);
            filmprovider = new MongoProvider<Film>("localhost",27017);
            filmprovider.Intialize();
            filmprovider.SaveElement(new Film() { Name = "Hateful Eight", Regisseur = "Tarantino", Pfad = "noch nicht da" });
            filmprovider.SaveElement(new Film() { Name = "Herr der Ringe", Regisseur = "Peter Jackson", Pfad = "Auf der Festplatte ;)" });
            filmprovider.SaveElement(new Film() { Name = "Star Wars", Regisseur = "JJ Abrams", Pfad = "Auch auf der FP" });
            Filme = new ObservableCollection<Film>(filmprovider.GetElements());

        }