Пример #1
0
        protected override void OnClick()
        {
            try
            {
                if (view.FocusMap.SpatialReference == null)
                {
                    view.FocusMap.SpatialReference = geopuntHelper.lam72;
                }
                if (capakayDlg != null)
                {
                    if (capakayDlg.IsDisposed)
                    {
                        capakayDlg = null;
                    }
                    else
                    {
                        if (!capakayDlg.Visible) capakayDlg.Show();
                        capakayDlg.WindowState = FormWindowState.Normal;
                        capakayDlg.Focus();
                        return;
                    }
                }

                capakayDlg = new capakeyForm();
                capakayDlg.Show();
                capakayDlg.WindowState = FormWindowState.Normal;
                capakayDlg.Focus();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message + " : " + ex.StackTrace);
            }
        }
Пример #2
0
        protected override void OnClick()
        {
            try
            {
                if (view.FocusMap.SpatialReference == null)
                {
                    view.FocusMap.SpatialReference = geopuntHelper.lam72;
                }
                if (capakayDlg != null)
                {
                    if (capakayDlg.IsDisposed)
                    {
                        capakayDlg = null;
                    }
                    else
                    {
                        if (!capakayDlg.Visible)
                        {
                            capakayDlg.Show();
                        }
                        capakayDlg.WindowState = FormWindowState.Normal;
                        capakayDlg.Focus();
                        return;
                    }
                }

                capakayDlg = new capakeyForm();
                capakayDlg.Show();
                capakayDlg.WindowState = FormWindowState.Normal;
                capakayDlg.Focus();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message + " : " + ex.StackTrace);
            }
        }