private void UcContents1_OneClickGotoPage(object sender, EventArgs e, string title, string page) { Ywid = UcConten.ywid; int p = UcConten.ArchPages; if (p >= 1 && p < MaxPages) { Himg._Gotopage(p); } }
private void UcContents1_OneClickGotoPage(object sender, EventArgs e, string title, string page) { labConten.Text = title; int p = 0; try { p = Convert.ToInt32(page); } catch { } if (p > 0 && p <= Clscheck.MaxPage) { Himg._Gotopage(p); } }
private void UcContents1_OneClickGotoPage(object sender, EventArgs e, string title, string page) { labConten.Text = title; int p = 0; try { p = Convert.ToInt32(page); } catch { } if (p > 0 && p <= Clscheck.MaxPage) { int id = 0; for (int i = 0; i < strpage.Count; i++) { int s = strpage[i]; if (s < p) { id += 1; } } Himg._Gotopage(p + id); } }
private void toolGotoPages_Click(object sender, EventArgs e) { Frmnum nu = new Frmnum(); nu.ShowDialog(); int page = Frmnum.Page; if (page > 0 && page <= ClsTwain.MaxPage) { Himg._Gotopage(Frmnum.Page); } ImgView.Focus(); }