Exemplo n.º 1
0
        /// <summary>
        /// Ctor
        /// </summary>
        public MainWindowViewModel()
        {
            var type = AppContext.Instance.IsMock ? "mock" : "real";
            var bl   = new BusinessLayer(type);

            bl.Sync();
            List = new PictureListViewModel();
            if (List.Count != 0)
            {
                CurrentPicture = List.List.First();
            }
        }
        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();
        }