예제 #1
0
 private void cBESample_TextChanged(object sender, EventArgs e)
 {
     ExportData.secSample = cBESample.Text;
     SampleSimulation.BindFields(cBESample.Text, cBESamBasis);
     SampleSimulation.BindFields(cBESample.Text, cBESamLayer);
     SampleSimulation.BindFields(cBESample.Text, cBESamSurvey);
     SampleSimulation.BindFields(cBESample.Text, cBESamCunName);
 }
예제 #2
0
        //入样总体
        private void btnOpenFile_Click(object sender, EventArgs e)
        {
            OpenFileDialog fileDialog = new OpenFileDialog();

            fileDialog.Multiselect = true;
            fileDialog.Title       = "请选择文件";
            fileDialog.Filter      = "shapefile(*.shp)|*.shp|All files(*.*)|*.*";

            if (fileDialog.ShowDialog() == DialogResult.OK)
            {
                string filepath = fileDialog.FileName.ToString();
                cBFile.Text = filepath;//获取文件路径
                SampleSimulation.BindFields(cBFile.Text, cBELayer);
                SampleSimulation.BindFields(cBFile.Text, cBEBasis);
                SampleSimulation.BindFields(cBFile.Text, cBEClassic);
            }
        }
예제 #3
0
 private void cBSamplePopu_TextChanged(object sender, EventArgs e)
 {
     ExportData.firstUnit = cBSamplePopu.Text;
     SampleSimulation.BindFields(cBSamplePopu.Text, cBEPopuBasis);
     SampleSimulation.BindFields(cBSamplePopu.Text, cBEPopuLayer);
 }
예제 #4
0
 private void cBFile_TextChanged(object sender, EventArgs e)
 {
     SampleSimulation.BindFields(cBFile.Text, cBELayer);
     SampleSimulation.BindFields(cBFile.Text, cBEBasis);
     SampleSimulation.BindFields(cBFile.Text, cBEClassic);
 }