Ejemplo n.º 1
0
		public HomeViewModel(RegistrationsController registrationsController, GameController gameController, LiveController liveController)
		{
			_registrationsController = registrationsController;

			this.GoToRegistrationCommand = new DelegateCommand(GoToRegistration);
            this.OpenGameSelectionCommand = gameController.OpenGameSelectionCommand;
            this.LiveShowCommand = liveController.LiveShowCommand;
		}
		public ContestRegistrationViewModel(RegistrationsController controller, IContestDao contestDao)
		{
			this._contestDao = contestDao;

			_contests = new ObservableCollection<Contest>();
			this.Contests = new ReadOnlyObservableCollection<Contest>(_contests);

			this.RefreshDataCommand = DelegateCommand.FromAsyncHandler(LoadData);
			this.RegisterPlayerCommand = controller.RegisterPlayerCommand;
			this.RegisterTeamCommand = controller.RegisterTeamCommand;
		}
		public RegistrationViewModel(RegistrationsController controller)
		{
			this.RegisterPlayerCommand = controller.RegisterPlayerCommand;
			this.RegisterTeamCommand = controller.RegisterTeamCommand;
		}