Exemplo n.º 1
0
 private void btnApply_Click(object sender, EventArgs e)
 {
     try
     {
         frmOptimizationSample pOptSampe = System.Windows.Forms.Application.OpenForms["frmOptimizationSample"] as frmOptimizationSample;
         if (pOptSampe == null)
         {
             MessageBox.Show("The form for classification result is closed");
             this.Close();
         }
         pOptSampe.DrawSymbolinListViewwithCb(Cs, Convert.ToInt32(nudGCNClasses.Value));
         pOptSampe.nudGCNClasses.Value = this.nudGCNClasses.Value;
         this.Close();
     }
     catch (Exception ex)
     {
         MessageBox.Show(this.Handle.ToString() + " Error:" + ex.Message);
         return;
     }
 }
Exemplo n.º 2
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            try
            {
                pMulitColorRampsResults = new MultiPartColorRampClass();
                pMulitColorRampsResults = pMultiColorRamp;

                if (intLoadingPlaces == 1)
                {
                    frmSymbology pForm = System.Windows.Forms.Application.OpenForms["frmProperties"] as frmSymbology;
                    //pForm.DrawSymbolinListView();
                    pForm.DrawSymboliinDataGridView();
                }
                else if (intLoadingPlaces == 2)
                {
                    frmNewClassSeparbility pForm = System.Windows.Forms.Application.OpenForms["frmNewClassSeparability"] as frmNewClassSeparbility;
                    pForm.DrawSymbolinChartwithCb(pForm.m_cb, pForm.m_intGCBreakeCount);
                    //frmClassSeparability pForm = System.Windows.Forms.Application.OpenForms["frmClassSeparability"] as frmClassSeparability;
                    //pForm.DrawSymbolinListView();
                }
                else if (intLoadingPlaces == 3)
                {
                    frmOptimizationSample pForm = System.Windows.Forms.Application.OpenForms["frmOptimizationSample"] as frmOptimizationSample;
                    pForm.DrawSymbolinChartwithCb(pForm.m_cb, pForm.m_intGCBreakeCount);
                }
                else if (intLoadingPlaces == 4)
                {
                    MessageBox.Show("The cmstom color ramp will be applied after udapting maps");
                }

                this.Hide();
            }
            catch (Exception ex)
            {
                frmErrorLog pfrmErrorLog = new frmErrorLog(); pfrmErrorLog.ex = ex; pfrmErrorLog.ShowDialog();
                return;
            }
        }
Exemplo n.º 3
0
        private void classificationOptimizationToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmOptimizationSample pOptSample = new frmOptimizationSample();

            pOptSample.Show();
        }