/// <summary> /// Button click event that gets the next 20 followed streamers and loads them into the datagridview /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void NextButton_Click(object sender, EventArgs e) { string pagination = _paginationStack.Peek(); LoadTabFollowedStreamers(APICalls.GetFollowedStreamersNext(_userID, pagination)); PreviousButton.Visible = true; }
/// <summary> /// Button click event that gets the previous 20 followed streamers and loads them into the datagridview /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void PreviousButton_Click(object sender, EventArgs e) { _paginationStack.Pop(); _paginationStack.Pop(); if (_paginationStack.Count == 0) { LoadTabFollowedStreamers(APICalls.GetFollowedStreamers(_userID)); PreviousButton.Visible = false; } else { string pagination = _paginationStack.Peek(); LoadTabFollowedStreamers(APICalls.GetFollowedStreamersNext(_userID, pagination)); } }