Esempio n. 1
0
 private void ListView1_Click(object sender, EventArgs e)
 {
     string str_itemid = string.Empty;
     if (this.ListView1.SelectedItems != null)  //判断ListView控件是否有项目选中
     {
         str_itemid = this.ListView1.SelectedItems[0].SubItems[7].Text;
     }
     DataOperation GetHtml = new DataOperation();
     string html = GetHtml.GetItemHtmlById(str_itemid);
     htmlTextBox1.DocumentText = html;
 }
Esempio n. 2
0
        private void EditNewWinMenuItem_Click(object sender, EventArgs e)
        {
            string str_itemid = string.Empty;
            if (this.ListView1.SelectedItems != null)  //判断ListView控件是否有项目选中
            {
                str_itemid = this.ListView1.SelectedItems[0].SubItems[7].Text;
            }
            DataOperation GetHtml = new DataOperation();
            string html = GetHtml.GetItemHtmlById(str_itemid);

            Form EditDia = new HTMLEdit(html);
            EditDia.Show();
        }