protected override void OnClick() { try { if (view.FocusMap.SpatialReference == null) { view.FocusMap.SpatialReference = geopuntHelper.lam72; } if (gipodFormDlg != null) { if (gipodFormDlg.IsDisposed) { gipodFormDlg = null; } else { if (!gipodFormDlg.Visible) gipodFormDlg.Show(); gipodFormDlg.WindowState = FormWindowState.Normal; gipodFormDlg.Focus(); return; } } gipodFormDlg = new gipodForm(); gpExtension.gipodDlg = gipodFormDlg; gipodFormDlg.Show(); gipodFormDlg.WindowState = FormWindowState.Normal; gipodFormDlg.Focus(); } catch (Exception ex) { MessageBox.Show(ex.Message + " : " + ex.StackTrace); } }
protected override void OnClick() { try { if (view.FocusMap.SpatialReference == null) { view.FocusMap.SpatialReference = geopuntHelper.lam72; } if (gipodFormDlg != null) { if (gipodFormDlg.IsDisposed) { gipodFormDlg = null; } else { if (!gipodFormDlg.Visible) { gipodFormDlg.Show(); } gipodFormDlg.WindowState = FormWindowState.Normal; gipodFormDlg.Focus(); return; } } gipodFormDlg = new gipodForm(); gpExtension.gipodDlg = gipodFormDlg; gipodFormDlg.Show(); gipodFormDlg.WindowState = FormWindowState.Normal; gipodFormDlg.Focus(); } catch (Exception ex) { MessageBox.Show(ex.Message + " : " + ex.StackTrace); } }