public PreviewViewModel() { Screens = new ObservableCollection <ScreenViewModel>(); ScreenViewModel screen = new ScreenViewModel(); Screens.Add(screen); ScreenChosen = screen; Visible = Visibility.Collapsed; }
public void ReceiveScreens(List <ScreenOutData> screenOuts) { //throw new NotImplementedException(); _prvm.Screens = new System.Collections.ObjectModel.ObservableCollection <ScreenViewModel>(); foreach (var screen in screenOuts) { ScreenViewModel scrvm = new ScreenViewModel( screen.Id, Converter.ByteToImage(screen.ScreenShot)); _prvm.Screens.Add(scrvm); } _prvm.Visible = System.Windows.Visibility.Visible; }