예제 #1
0
 public HaircutMinigamePage()
 {
     DesiredShape.LoadShapes();
     ViewModel = new HaircutMinigameVM();
     ViewModel.NewRoundStarted += OnNewRoundStarted;
     DataContext = ViewModel;
     InitializeComponent();
 }
예제 #2
0
 private void OnNewRoundStarted()
 {
     ViewModel.Dispose();
     ViewModel = new HaircutMinigameVM();
     ViewModel = new HaircutMinigameVM();
     ViewModel.InjectOverlaySettings(OverlaySettings);
     ViewModel.InjectRouter(Router);
     ViewModel.NewRoundStarted += OnNewRoundStarted;
     DataContext = ViewModel;
 }