private void updateNextPreviousButton()
{
if (pageIndex >= numOfPage)
{
nextBut.Image = global::ACPAddIn.Properties.Resources.nextDisabled;
this.nextBut.Cursor = System.Windows.Forms.Cursors.Default;
}
else if(!isHoverNext)
{
nextBut.Image = global::ACPAddIn.Properties.Resources.next;
this.nextBut.Cursor = System.Windows.Forms.Cursors.Hand;
}
if (pageIndex <= 1)
{
previousBut.Image = global::ACPAddIn.Properties.Resources.previousDisabled;
this.previousBut.Cursor = System.Windows.Forms.Cursors.Default;
}
else if (!isHoverPrevious)
{
previousBut.Image = global::ACPAddIn.Properties.Resources.previous;
this.previousBut.Cursor = System.Windows.Forms.Cursors.Hand;
}
}