示例#1
0
 public frmAdvSWM()
 {
     InitializeComponent();
     m_pSnippet = new clsSnippet();
     m_pForm    = Application.OpenForms["MainForm"] as MainForm;
     m_pEngine  = m_pForm.pEngine;
 }
示例#2
0
        //public IFeatureLayer m_pClipPolygon;
        public frmSubsetPoly()
        {
            InitializeComponent();
            m_pForm = Application.OpenForms["MainForm"] as MainForm;

            for (int i = 0; i < m_pForm.map1.Layers.Count; i++)
            {
                if (m_pForm.map1.Layers[i] is IMapPolygonLayer)
                {
                    cboTargetLayer.Items.Add(m_pForm.map1.Layers[i].DataSet.Name);
                }
            }

            m_pSnippet = new clsSnippet();
        }
示例#3
0
        public frmGLM()
        {
            InitializeComponent();
            m_pForm = Application.OpenForms["MainForm"] as MainForm;

            for (int i = 0; i < m_pForm.map1.Layers.Count; i++)
            {
                cboTargetLayer.Items.Add(m_pForm.map1.Layers[i].DataSet.Name);
            }

            m_pEngine = m_pForm.pEngine;
            m_pEngine.Evaluate("library(spdep); library(maptools); library(MASS)");

            m_pSnippet = new clsSnippet();
        }
        public frmSpatialRegression()
        {
            try
            {
                InitializeComponent();
                m_pForm = Application.OpenForms["MainForm"] as MainForm;

                for (int i = 0; i < m_pForm.map1.Layers.Count; i++)
                {
                    cboTargetLayer.Items.Add(m_pForm.map1.Layers[i].DataSet.Name);
                }

                m_pEngine = m_pForm.pEngine;
                m_pEngine.Evaluate("library(spdep); library(maptools); library(MASS)");

                m_pSnippet = new clsSnippet();
            }
            catch (Exception ex)
            {
                frmErrorLog pfrmErrorLog = new frmErrorLog(); pfrmErrorLog.ex = ex; pfrmErrorLog.ShowDialog();
                return;
            }
        }
示例#5
0
 public frmPlot()
 {
     InitializeComponent();
     m_pForm    = Application.OpenForms["MainForm"] as MainForm;
     m_pSnippet = new clsSnippet();
 }