VintaSoft Imaging .NET SDK and Plug-ins Discussions
Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.
Board index < VintaSoft Imaging < VintaSoft Imaging .NET SDK and Plug-ins Discussions
private void moveUpToolStripMenuItem_Click(object sender, EventArgs e)
{
int curIndex = pdfViewer.FocusedIndex;
int[] vwIndex = new int[1] {pdfViewer.FocusedIndex};
if (curIndex > 0)
{
pdfViewer.Images.MoveRange(curIndex - 1, vwIndex);
pdfViewer.FocusedIndex = curIndex - 1;
}
}
private void moveDownToolStripMenuItem_Click(object sender, EventArgs e)
{
int curIndex = pdfViewer.FocusedIndex;
int[] vwIndex = new int[1] {pdfViewer.FocusedIndex};
if (curIndex < pdfViewer.Images.Count - 1)
{
pdfViewer.Images.MoveRange(curIndex + 1, vwIndex);
pdfViewer.FocusedIndex = curIndex + 1;
}
}
private void moveDownToolStripMenuItem_Click(object sender, EventArgs e)
{
int curIndex = thumbnailViewer1.FocusedIndex;
int[] vwIndex = new int[1] { thumbnailViewer1.FocusedIndex };
if (curIndex < thumbnailViewer1.Images.Count - 1)
{
thumbnailViewer1.Images.MoveRange(curIndex + 2, vwIndex);
thumbnailViewer1.FocusedIndex = curIndex + 1;
}
}
Best regards, Alexander