Skip to content

Commit 28baf64

Browse files
committed
Minor re-adjustment
1 parent 5eb0c11 commit 28baf64

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

FetchXmlBuilder/DockControls/ResultGrid.cs

+1-6
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ internal void SetData(QueryInfo queryinfo)
4141
txtPagingCookie.Text = queryinfo.Results.PagingCookie;
4242
if (queryinfo.Query is FetchExpression && !form.settings.Results.RetrieveAllPages && (queryinfo.Results.MoreRecords || queryinfo.PageNo > 1))
4343
{
44-
SetPageNo();
44+
mnuPage.Text = (queryinfo.PageNo < 10 ? "Page " : "") + queryinfo.PageNo.ToString() + (queryinfo.Pages > 0 ? $"/{queryinfo.Pages}" : "");
4545
mnuPageMinus.Enabled = queryinfo.PageNo > 1;
4646
mnuPagePlus.Enabled = queryinfo.Results.MoreRecords;
4747
mnuPage.Visible = true;
@@ -76,11 +76,6 @@ internal void SetData(QueryInfo queryinfo)
7676
}
7777
}
7878

79-
private void SetPageNo()
80-
{
81-
mnuPage.Text = (queryinfo.PageNo < 10 ? "Page " : "") + queryinfo.PageNo.ToString() + (queryinfo.Pages > 0 ? $"/{queryinfo.Pages}" : "");
82-
}
83-
8479
internal void ApplySettingsToGrid()
8580
{
8681
mnuFriendly.Checked = form.settings.Results.Friendly;

0 commit comments

Comments
 (0)