示例#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;
 }