void AddStadium(object parameter) { if (!ValidateParams(parameter)) { ShowInfoWindow("Podaj poprawne dane"); return; } var values = (object[])parameter; Stadium s = new Stadium { name = values[0].ToString(), city = values[1].ToString(), country = values[2].ToString() }; stadiumService.AddStadium(s); UpdateStadiumGrid(); }