예제 #1
0
        public PreviewViewModel()
        {
            Screens = new ObservableCollection <ScreenViewModel>();
            ScreenViewModel screen = new ScreenViewModel();

            Screens.Add(screen);

            ScreenChosen = screen;

            Visible = Visibility.Collapsed;
        }
예제 #2
0
        public void RecieveScreens(List <ScreenOutData> scr)
        {
            _prvm.Screens = new System.Collections.ObjectModel.ObservableCollection <ScreenViewModel>();
            foreach (var screen in scr)
            {
                ScreenViewModel scrvm = new ScreenViewModel(
                    screen.Id,
                    Converter.ByteToImage(screen.ScreenShot));

                _prvm.Screens.Add(scrvm);
            }

            _prvm.Visible = System.Windows.Visibility.Visible;
            //throw new NotImplementedException();
        }