public TextViewModel(InfoScreenViewModel infoScreenViewModel, Text text, int position) { this.Title = text.Title; this.Text = text.OwnText; this.Position = position; this.BaseObject = text; this.InfoScreenViewModel = infoScreenViewModel; }
public PictureViewModel(InfoScreenViewModel infoScreenViewModel, Picture picture, int position) { this.Title = picture.Title; this.ImageArray = picture.Image; this.Position = position; this.BaseObject = picture; this.InfoScreenViewModel = infoScreenViewModel; }
public GamePasswordViewModel(InfoScreenViewModel infoScreenViewModel, PasswordGameRequirement password, int position = 0) { this.Title = password.Question; this.Position = position; this.BaseObject = password; this.IsDone = false; this.ConfirmPassword = new Command(OnPasswordConfirm); this.InfoScreenViewModel = infoScreenViewModel; this.PropertyChanged += (_, __) => InfoScreenViewModel.UpdateDisplayObject(this); }
protected void RaiseAddedDisplayObjectEvent(InfoScreenViewModel sender, DisplayObjectViewModel displayObjectViewModel) { AddedDisplayObject(sender, new AddedDisplayObjectEventArgs(displayObjectViewModel)); }