private void btnExecute_Click(object sender, EventArgs e) { string projectFtrName = cmbProjectBoundary.Text; string MapStr = cmbMap.Text; double alpha = System.Convert.ToDouble(nudAlpha.Value); string oPath = txtOAA.Text; string aPath = txtOutModel.Text; if (aPath == null || aPath == "") { MessageBox.Show("You must select an accuracy assessment model", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } if (oPath == null || oPath == "") { MessageBox.Show("You must select an output model", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } if (projectFtrName == null || projectFtrName == "") { MessageBox.Show("You must select a feature Class that represent a boundary", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } if (MapStr == null || MapStr == "") { MessageBox.Show("You must select a Map featureClass or Raster", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } this.Visible = false; IFeatureClass pj = ftrDic[projectFtrName]; Statistics.dataPrepAdjustAccuracyAssessment aa = null; if (ftrDic.ContainsKey(MapStr)) { IFeatureClass mp = ftrDic[MapStr]; aa = new Statistics.dataPrepAdjustAccuracyAssessment(pj, mp, oPath, aPath); } else { IRaster mp = rstDic[MapStr]; aa = new Statistics.dataPrepAdjustAccuracyAssessment(pj, mp, oPath, aPath); } aa.buildModel(); Statistics.ModelHelper mH = new Statistics.ModelHelper(aPath); mH.openModelReport(aPath, alpha); this.Close(); }