private void btnExecute_Click(object sender, EventArgs e) { string smpFtrNm = cmbSampleFeatureClass.Text; string mapFld = cmbMap.Text; string refFld = cmbRef.Text; string mapFld2 = cmbMap2.Text; string outModelPath = txtOutputPath.Text; if (outModelPath == null || outModelPath == "") { MessageBox.Show("You must select an output model", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } if (smpFtrNm == null || smpFtrNm == "") { MessageBox.Show("You must select a feature Class", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } if (mapFld == null || mapFld == "") { MessageBox.Show("You must select a map field 1", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } if (mapFld2 == null || mapFld2 == "") { MessageBox.Show("You must select a map field 2", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } if (refFld == null || refFld == "") { MessageBox.Show("You must select a Reference field", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } this.Visible = false; ITable ftrCls = ftrDic[smpFtrNm]; Statistics.dataPrepCompareClassifications cc = new Statistics.dataPrepCompareClassifications(ftrCls, refFld, mapFld, mapFld2); cc.writeModel(outModelPath); cc.getReport(); this.Close(); }
private void btnExecute_Click(object sender, EventArgs e) { string smpFtrNm = cmbSampleFeatureClass.Text; string mapFld = cmbMap.Text; string refFld = cmbRef.Text; string mapFld2 = cmbMap2.Text; string outModelPath = txtOutputPath.Text; if (outModelPath == null || outModelPath == "") { MessageBox.Show("You must select an output model", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } if (smpFtrNm == null || smpFtrNm == "") { MessageBox.Show("You must select a feature Class", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } if (mapFld == null || mapFld == "") { MessageBox.Show("You must select a map field 1", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } if (mapFld2 == null || mapFld2 == "") { MessageBox.Show("You must select a map field 2", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } if (refFld == null || refFld == "") { MessageBox.Show("You must select a Reference field", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } this.Visible = false; ITable ftrCls = ftrDic[smpFtrNm]; Statistics.dataPrepCompareClassifications cc = new Statistics.dataPrepCompareClassifications(ftrCls,refFld,mapFld,mapFld2); cc.writeModel(outModelPath); cc.getReport(); this.Close(); }