예제 #1
0
        void AddClub(object parameter)
        {
            if (!ValidateParams(parameter))
            {
                ShowInfoWindow("Podaj poprawne dane");
                return;
            }
            var values = (object[])parameter;
            StadiumViewModel stadiumClub = (StadiumViewModel)values[1];
            RecordViewModel  recordClub  = (RecordViewModel)values[2];

            clubService.AddClub(values[0].ToString(), stadiumClub.ID, recordClub.ID);
            UpdateClubGrid();
        }