internal void RemoveBullet(QuizBullet quizBullet) { // Already removed by the parent datacontext (because Bullet are not managed by the Layer, but by the Exercise) // So, just inform that their is a Bullet has been deleted to remove it of the view RaisePropertyChanged("BulletComponents"); RaisePropertyChanged("RemoveBulletComponent"); // To update the view through LayerContainer.xaml.cs }
internal void RemoveBullet(QuizBullet quizBullet) { var quiz = ((QuizContent) lessonModel.Exercises.Contents[lessonViewModel.CurrentPageIndex]); quiz.RemoveBullet(quizBullet.Offset); CurrentLayer.RemoveBullet(quizBullet); }
public void RemoveBullet(QuizBullet bullet) { (Content as QuizContent).RemoveBullet(bullet.Offset); }