protected override void OnClick()
 {
     if (settingsDlg != null)
     {
         if (settingsDlg.IsDisposed)
         {
             settingsDlg = null;
         }
         else
         {
             if (!settingsDlg.Visible) settingsDlg.Show();
             settingsDlg.WindowState = FormWindowState.Normal;
             settingsDlg.Focus();
             return;
         }
     }
     settingsDlg = new settingsForm();
     gpExtension.settingsDlg = settingsDlg;
     settingsDlg.Show();
     settingsDlg.WindowState = FormWindowState.Normal;
     settingsDlg.Focus();
 }
        protected override void OnClick()
        {

            if (settingsDlg != null)
            {
                if (settingsDlg.IsDisposed)
                {
                    settingsDlg = null;
                }
                else
                {
                    if (!settingsDlg.Visible) settingsDlg.Show();
                    settingsDlg.WindowState = FormWindowState.Normal;
                    settingsDlg.Focus();
                    return;
                }
            }
            settingsDlg = new settingsForm();
            gpExtension.settingsDlg = settingsDlg;
            settingsDlg.Show();
            settingsDlg.WindowState = FormWindowState.Normal;
            settingsDlg.Focus();
        }