public PictureListViewModel(IEnumerable <IPictureModel> pictures)
 {
     foreach (var pic in pictures)
     {
         var v = new PictureViewModel(pic);
         _list.Add(v);
     }
 }
        public PictureListViewModel()
        {
            bl.Sync(); //First Synch !!
            var pictures = bl.GetPictures();

            foreach (IPictureModel model in pictures)
            {
                _list.Add(new PictureViewModel((PictureModel)model));
            }
            _backupList = new ObservableCollection <IPictureViewModel>(_list);

            int firstModelID = _list.First().ID;

            CurrentPicture = new PictureViewModel(bl.GetPicture(firstModelID));
        }
        public MainWindowViewModel()
        {
            CurrentPicture  = new PictureViewModel(1);
            PictureVMList   = new PictureListViewModel();
            AddPhotographer = new PhotographerViewModel();

            pictures = PictureVMList.PictureVMlist;

            PhotographerListViewModel = new PhotographerListViewModel();

            photographerViewModels = PhotographerListViewModel.PhotographerList;

            MsSQLDAL ms = new MsSQLDAL();

            ms.getPhotographer(1);
            //ms.makePictureReport(4);

            //ms.makeTagReport();
        }