Пример #1
0
        public override void OnClick()
        {
            ILayer        layer   = (ILayer)m_mapControl.CustomProperty;
            IFeatureLayer pFlayer = (IFeatureLayer)layer;
            //MainForm mForm = System.Windows.Forms.Application.OpenForms["MainForm"] as MainForm;
            //clsSnippet pSnippet = new clsSnippet();
            clsBrusingLinking pBL        = new clsBrusingLinking();
            string            strWarning = pBL.RemoveWarningByBrushingTechnique(pFlayer);

            if (strWarning == string.Empty)
            {
                m_mapControl.Map.DeleteLayer(layer);
            }
            else
            {
                DialogResult dialogResult = MessageBox.Show("The layer is related with plots below:" + Environment.NewLine + strWarning
                                                            , "Do you want to remove the layer?", MessageBoxButtons.YesNo);
                if (dialogResult == DialogResult.Yes)
                {
                    m_mapControl.Map.DeleteLayer(layer);
                    pBL.CloseAllRelatedPlots(pFlayer);
                }
                else if (dialogResult == DialogResult.No)
                {
                    return;
                }
            }
        }
Пример #2
0
 public frmMScatterResults()
 {
     InitializeComponent();
     //pSnippet = new clsSnippet();
     m_pBL      = new clsBrusingLinking();
     m_pSnippet = new clsSnippet();
 }
Пример #3
0
        public frmConnectivityMap()
        {
            InitializeComponent();
            m_pBL = new clsBrusingLinking();

            m_pSnippet    = new clsSnippet();
            m_pActiveView = ConMapControl.ActiveView;
        }
Пример #4
0
 public frmAttributeTable()
 {
     try
     {
         InitializeComponent();
         m_pSnippet    = new clsSnippet();
         m_pBL         = new clsBrusingLinking();
         m_pForm       = System.Windows.Forms.Application.OpenForms["MainForm"] as MainForm;
         m_pActiveView = m_pForm.axMapControl1.ActiveView;
     }
     catch (Exception ex)
     {
         frmErrorLog pfrmErrorLog = new frmErrorLog(); pfrmErrorLog.ex = ex; pfrmErrorLog.ShowDialog();
         return;
     }
 }
Пример #5
0
 public frmScatterPlotResults()
 {
     InitializeComponent();
     //m_pSnippet = new clsSnippet();
     m_pBL = new clsBrusingLinking();
     //FormCollection pFormCollection = System.Windows.Forms.Application.OpenForms;
     //int intFormCount = System.Windows.Forms.Application.OpenForms.Count;
     //int[] ints = new int[intFormCount];
     //List<IntPtr> ptss = new List<IntPtr>();
     //for (int i = 0; i < intFormCount; i++)
     //{
     //    IntPtr pts = pFormCollection[i].Handle;
     //    ptss.Add(pts);
     //}
     //int intod = 0;
 }
Пример #6
0
        public frmCCMapsResults()
        {
            try
            {
                InitializeComponent();

                m_pSnippet    = new clsSnippet();
                m_pBL         = new clsBrusingLinking();
                m_pForm       = System.Windows.Forms.Application.OpenForms["MainForm"] as MainForm;
                m_pActiveView = m_pForm.axMapControl1.ActiveView;

                //Create Color ramps for drawing event in combobox;
                cboColorRamp.DrawMode = DrawMode.OwnerDrawVariable;
                clsColorRamps pColorRamps = new clsColorRamps();
                m_colorRampNames = pColorRamps.colorRampNames;
                m_colorLists     = pColorRamps.CreateColorList();
            }
            catch (Exception ex)
            {
                frmErrorLog pfrmErrorLog = new frmErrorLog(); pfrmErrorLog.ex = ex; pfrmErrorLog.ShowDialog();
                return;
            }
        }
Пример #7
0
 public frmClassificationGraph()
 {
     InitializeComponent();
     //m_pSnippet = new clsSnippet();
     m_pBL = new clsBrusingLinking();
 }
Пример #8
0
 public frmHistResults()
 {
     InitializeComponent();
     //m_pSnippet = new clsSnippet();
     m_pBL = new clsBrusingLinking();
 }
Пример #9
0
 public frmConnectivityHistogram()
 {
     InitializeComponent();
     m_pBL = new clsBrusingLinking();
 }