Exemplo n.º 1
0
 public virtual void InitializeCoreGameRoot(CoreGameRootViewModel viewModel)
 {
     // This is called when a CoreGameRootViewModel is created
     viewModel.RefreshCoreGame.Action           = this.RefreshCoreGameHandler;
     viewModel.RootMatchBegan.Action            = this.RootMatchBeganHandler;
     viewModel.QuitCoreGame.Action              = this.QuitCoreGameHandler;
     viewModel.PlayerJoin.Action                = this.PlayerJoinHandler;
     viewModel.PlayerLeave.Action               = this.PlayerLeaveHandler;
     viewModel.CalcPosIdAndRepos.Action         = this.CalcPosIdAndReposHandler;
     viewModel.TurnNext.Action                  = this.TurnNextHandler;
     viewModel.RootMatchOver.Action             = this.RootMatchOverHandler;
     viewModel.ButtonCloseSummaryClicked.Action = this.ButtonCloseSummaryClickedHandler;
     viewModel.RefreshSummaryPlayersList.Action = this.RefreshSummaryPlayersListHandler;
     viewModel.CalcMatchResult.Action           = this.CalcMatchResultHandler;
     CoreGameRootViewModelManager.Add(viewModel);
 }
Exemplo n.º 2
0
 public override void DisposingViewModel(uFrame.MVVM.ViewModel viewModel)
 {
     base.DisposingViewModel(viewModel);
     CoreGameRootViewModelManager.Remove(viewModel);
 }