Exemplo n.º 1
0
 // 选中行更改
 private void TitleListView_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         ListView.SelectedIndexCollection indexes = this.TitleListView.SelectedIndices;
         if (indexes.Count > 0)
         {
             int    index      = indexes[0];
             string sPartNames = this.TitleListView.Items[index].SubItems[1].Text; //章节名称
             string contentUrl = this.TitleListView.Items[index].SubItems[2].Text; //内容地址
             XmlServices.EditViceDirectory(titleUrl, sPartNames, contentUrl);
             this.Close();
             SoContent objForm = new SoContent()
             {
                 contentUrl  = contentUrl,
                 catalogUrl  = titleUrl,
                 sFrom       = sFrom,
                 bookName    = bookName,
                 chapterList = titleList,
                 pShow       = pShow
             };
             //再主窗体中加载  章节窗体
             sFrom?.Invoke(objForm);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("操作失败!\n" + ex.Message, "提示", MessageBoxButtons.OK,
                         MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1);
     }
 }
Exemplo n.º 2
0
        private void ThreadRefund(string pathurl, string contentUrl, string bookName)
        {
            SoContent objForm = new SoContent
            {
                catalogUrl  = pathurl,
                contentUrl  = contentUrl,
                chapterList = zhangjielist,
                bookName    = bookName,
                sFrom       = sFrom,
                pShow       = pShow
            };

            //再主窗体中加载  章节窗体
            sFrom?.Invoke(objForm);
        }
Exemplo n.º 3
0
 public HideFrom(SoContent content)
 {
     InitializeComponent();
     ContentFrom = content;
 }