Example #1
0
        // CTOR
        public MatchViewModel()
        {
            MatchModel.ViewModel = this;

            BreakCmd = new DoStuffCommand(Break, obj => true);

            TeamPickCmd = new DoStuffWithStuffCommand((stuffWith) =>
                                                      { OnTeamPick(stuffWith as string); }, obj => true);
            NewMatchCmd    = new DoStuffCommand(MakeNewMatch, obj => true);
            DeleteMatchCmd = new DoStuffCommand(DeleteMatch, obj => true);
            CellEditedCmd  = new DoStuffCommand(OnCellEdited, obj => true);
        }
		// CTOR
		public MatchViewModel()
		{
			MatchModel.ViewModel = this;

			BreakCmd = new DoStuffCommand(Break, obj => true);

			TeamPickCmd = new DoStuffWithStuffCommand((stuffWith) => 
				{ OnTeamPick(stuffWith as string); }, obj => true);
			NewMatchCmd = new DoStuffCommand(MakeNewMatch, obj => true);
			DeleteMatchCmd = new DoStuffCommand(DeleteMatch, obj => true);
			CellEditedCmd = new DoStuffCommand(OnCellEdited, obj => true);
		}