/** * The contructor takes in a profile which is passed on trough the MainWindow where the user chose Games/Teams/Leagues/Players. **/ public DataProvider(Profile userProfile) { _userProfile = userProfile; }
private void _applylabelbutton_Click(object sender, EventArgs e) { Profile userProfile = new Profile(_gameList, _teamList, _playerList, _leagueList); DataProvider dp = new DataProvider(userProfile); Widget NeckBoard = new Widget(dp); this.Hide(); NeckBoard.Show(); }