Skip to content

Commit

Permalink
Minor re-adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
rappen committed Aug 13, 2023
1 parent 5eb0c11 commit 28baf64
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions FetchXmlBuilder/DockControls/ResultGrid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ internal void SetData(QueryInfo queryinfo)
txtPagingCookie.Text = queryinfo.Results.PagingCookie;
if (queryinfo.Query is FetchExpression && !form.settings.Results.RetrieveAllPages && (queryinfo.Results.MoreRecords || queryinfo.PageNo > 1))
{
SetPageNo();
mnuPage.Text = (queryinfo.PageNo < 10 ? "Page " : "") + queryinfo.PageNo.ToString() + (queryinfo.Pages > 0 ? $"/{queryinfo.Pages}" : "");
mnuPageMinus.Enabled = queryinfo.PageNo > 1;
mnuPagePlus.Enabled = queryinfo.Results.MoreRecords;
mnuPage.Visible = true;
Expand Down Expand Up @@ -76,11 +76,6 @@ internal void SetData(QueryInfo queryinfo)
}
}

private void SetPageNo()
{
mnuPage.Text = (queryinfo.PageNo < 10 ? "Page " : "") + queryinfo.PageNo.ToString() + (queryinfo.Pages > 0 ? $"/{queryinfo.Pages}" : "");
}

internal void ApplySettingsToGrid()
{
mnuFriendly.Checked = form.settings.Results.Friendly;
Expand Down

0 comments on commit 28baf64

Please sign in to comment.