protected override void OnClick()
 {
     try
     {
         if (view.FocusMap.SpatialReference == null)
         {
             view.FocusMap.SpatialReference = geopuntHelper.lam72;
         }
         if (catalogDlg != null)
         {
             if (catalogDlg.IsDisposed)
             {
                 catalogDlg = null;
             }
             else
             {
                 if (!catalogDlg.Visible) catalogDlg.Show();
                 catalogDlg.WindowState = FormWindowState.Normal;
                 catalogDlg.Focus();
                 return;
             }
         }
         catalogDlg = new catalogForm();
         gpExtension.catalogDLg = catalogDlg;
         catalogDlg.Show();
         catalogDlg.WindowState = FormWindowState.Normal;
         catalogDlg.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 (catalogDlg != null)
         {
             if (catalogDlg.IsDisposed)
             {
                 catalogDlg = null;
             }
             else
             {
                 if (!catalogDlg.Visible)
                 {
                     catalogDlg.Show();
                 }
                 catalogDlg.WindowState = FormWindowState.Normal;
                 catalogDlg.Focus();
                 return;
             }
         }
         catalogDlg             = new catalogForm();
         gpExtension.catalogDLg = catalogDlg;
         catalogDlg.Show();
         catalogDlg.WindowState = FormWindowState.Normal;
         catalogDlg.Focus();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message + " : " + ex.StackTrace);
     }
 }