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; } } }
public frmMScatterResults() { InitializeComponent(); //pSnippet = new clsSnippet(); m_pBL = new clsBrusingLinking(); m_pSnippet = new clsSnippet(); }
public frmConnectivityMap() { InitializeComponent(); m_pBL = new clsBrusingLinking(); m_pSnippet = new clsSnippet(); m_pActiveView = ConMapControl.ActiveView; }
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; } }
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; }
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; } }
public frmClassificationGraph() { InitializeComponent(); //m_pSnippet = new clsSnippet(); m_pBL = new clsBrusingLinking(); }
public frmHistResults() { InitializeComponent(); //m_pSnippet = new clsSnippet(); m_pBL = new clsBrusingLinking(); }
public frmConnectivityHistogram() { InitializeComponent(); m_pBL = new clsBrusingLinking(); }