Exemplo n.º 1
0
 private void OnNewRoundStarted()
 {
     ViewModel.Dispose();
     ViewModel = new HaircutMinigameVM();
     ViewModel = new HaircutMinigameVM();
     ViewModel.InjectOverlaySettings(OverlaySettings);
     ViewModel.InjectRouter(Router);
     ViewModel.NewRoundStarted += OnNewRoundStarted;
     DataContext = ViewModel;
 }
Exemplo n.º 2
0
 public override void OnAttachedToFrame()
 {
     base.OnAttachedToFrame();
     ViewModel.InjectOverlaySettings(OverlaySettings);
     ViewModel.InjectRouter(Router);
 }