protected override void OnSecurityException(SecurityExceptionEventArgs e)
 {
     using (SecurityExceptionForm form = new SecurityExceptionForm(e))
     {
         form.ShowDialog();
     }
 }