示例#1
0
 private void button4_Click(object sender, EventArgs e)
 {
     using (DownloadShapefileForm dlg = new DownloadShapefileForm(_plugin))
     {
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             ListViewItem lvi = new ListViewItem(new string[6]);
             lvi.SubItems[0].Text = dlg.ShapeFilePath;
             lvi.SubItems[1].Text = dlg.ShapeFileFieldName;
             lvi.SubItems[2].Text = dlg.ShapeFileFormat;
             lvi.SubItems[3].Text = dlg.ShapeFileType;
             lvi.SubItems[4].Text = dlg.ShapeFilePrefix;
             lvi.SubItems[5].Text = dlg.ShapeFileDbfEncoding;
             lvi.Checked          = true;
             listView1.Items.Add(lvi);
             lvi.Selected = true;
         }
     }
 }
示例#2
0
 private void button4_Click(object sender, EventArgs e)
 {
     using (DownloadShapefileForm dlg = new DownloadShapefileForm(_plugin))
     {
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             ListViewItem lvi = new ListViewItem(new string[5]);
             lvi.SubItems[0].Text = dlg.ShapeFilePath;
             lvi.SubItems[1].Text = dlg.ShapeFileFieldName;
             lvi.SubItems[2].Text = dlg.ShapeFileFormat;
             lvi.SubItems[3].Text = dlg.ShapeFileType;
             lvi.SubItems[4].Text = dlg.ShapeFilePrefix;
             lvi.Checked = true;
             listView1.Items.Add(lvi);
             lvi.Selected = true;
         }
     }
 }