Ejemplo n.º 1
0
        private void lvconten_Click(object sender, EventArgs e)
        {
            int x = lvconten.SelectedItems[0].Index;

            ywid = Convert.ToInt32(lvconten.SelectedItems[0].SubItems[5].Text);
            if (info.PageCount2.Count > 0)
            {
                ArchPages = Convert.ToInt32(info.PageCount2[x]);
                if (ArchPages > 0)
                {
                    OneClickGotoPage?.Invoke(sender, e);
                }
            }
        }
Ejemplo n.º 2
0
        private void Settxt(object sender, EventArgs e)
        {
            int    pid   = info.PagesWz;
            int    tid   = info.TitleWz;
            string page  = "";
            string title = "";

            CrragePage = LvContents.SelectedItems[0].Index;
            for (int i = 1; i < LvContents.Columns.Count; i++)
            {
                string str = LvContents.SelectedItems[0].SubItems[i].Text;
                if (i == 1)
                {
                    Mtmpid = Convert.ToInt32(str);
                }
                else
                {
                    info.SetInfoTxt(panel1, (i - 1), str);
                }
                if (i == pid + 2)
                {
                    page = str;
                }
                else if (i == tid + 2)
                {
                    title = str;
                }
                if (i == 5)
                {
                    ywid = str;
                }
            }
            if (title.Trim().Length > 0)
            {
                OneClickGotoPage?.Invoke(sender, e, title, page);
            }
        }