예제 #1
0
        public GamePasswordViewModel AddGamePassword(PasswordGameRequirement gamePasword, int position)
        {
            var addedPassword = new GamePasswordViewModel(this, gamePasword, position);

            DisplayObjects.Add(addedPassword);
            RaiseAddedDisplayObjectEvent(this, addedPassword);
            return(addedPassword);
        }
예제 #2
0
        public TextViewModel AddText(Text text, int position)
        {
            var addedText = new TextViewModel(this, text, position);

            DisplayObjects.Add(addedText);
            RaiseAddedDisplayObjectEvent(this, addedText);
            return(addedText);
        }
예제 #3
0
        public PictureViewModel AddPicture(Picture picture, int position)
        {
            var addedPicture = new PictureViewModel(this, picture, position);

            DisplayObjects.Add(addedPicture);
            RaiseAddedDisplayObjectEvent(this, addedPicture);
            return(addedPicture);
        }
예제 #4
0
        public PictureViewModel AddPicture(Picture picture)
        {
            var addedPicture = new PictureViewModel(this, picture, (int)picture.PositionInIntroduction);

            DisplayObjects.Add(addedPicture);
            RaiseAddedDisplayObjectEvent(this, addedPicture);
            return(addedPicture);
        }
예제 #5
0
        public TextViewModel AddText(Text text)
        {
            var addedText = new TextViewModel(this, text, (int)text.PositionInIntroduction);

            DisplayObjects.Add(addedText);
            RaiseAddedDisplayObjectEvent(this, addedText);
            return(addedText);
        }
예제 #6
0
 public void AddPasswordViewModel(GamePasswordViewModel passwordToAdd)
 {
     DisplayObjects.Add(passwordToAdd);
     RaiseAddedDisplayObjectEvent(this, passwordToAdd);
 }
 public void AddDisplayObjectViewModel(DisplayObjectViewModel displayObjectViewModel)
 {
     DisplayObjects.Add(displayObjectViewModel);
     RaiseAddedDisplayObjectEvent(this, displayObjectViewModel);
 }