// =========================================================================
 // Functions
 // =========================================================================
 public static void OpenForm()
 {
     if (_frmAgreement == null)
     {
         _frmAgreement = new FrmAgreement();
         var          application = ArcMap.Application;
         int          hWnd        = application.hWnd;
         IWin32Window parent      = new WindowWrapper(hWnd);
         _frmAgreement.Show(parent);
     }
 }
 // =========================================================================
 // Eventhandlers
 // =========================================================================
 private void FrmHelp_FormClosed(object sender, FormClosedEventArgs e)
 {
     _frmAgreement = null;
 }