예제 #1
0
        public override void OnAdd(object sender, EventArgs e)
        {
            if (ProjectManager.Project.DEMSurveys.Count + ProjectManager.Project.ReferenceSurfaces.Count < 2)
            {
                MessageBox.Show("You must have at least two DEM surveys in your GCD project before you can perform a change detection analysis." +
                                " These could be two DEM surveys or two reference surfaces or a combination of both.", "Insufficient Surfaces", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            ChangeDetection.frmDoDProperties frm = new ChangeDetection.frmDoDProperties();
            if (EditTreeItem(frm) == DialogResult.OK)
            {
                ChangeDetection.frmDoDResults frmResults = new ChangeDetection.frmDoDResults(frm.DoD);
                frmResults.ShowDialog();
            }
        }
예제 #2
0
 public override void OnAdd(object sender, EventArgs e)
 {
     ChangeDetection.frmDoDProperties frm = new ChangeDetection.frmDoDProperties(NewSurface, OldSurface);
     EditTreeItem(frm);
 }