private void m_pOk_Click(object sender, EventArgs e)
 {
     if (this.m_pFolderName.Text == "")
     {
         MessageBox.Show("Folder name cannot be empty!!!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
         return;
     }
     try
     {
         this.m_pVirtualServer.UsersDefaultFolders.Add(this.m_pFolderName.Text, this.m_pPermanent.Checked);
         base.DialogResult = DialogResult.OK;
         base.Close();
     }
     catch (Exception x)
     {
         ErrorForm errorForm = new ErrorForm(x, new StackTrace());
         errorForm.ShowDialog(this);
     }
 }
Esempio n. 2
0
        private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
        {
            ErrorForm errorForm = new ErrorForm((Exception)e.ExceptionObject, new StackTrace());

            errorForm.ShowDialog(null);
        }
Esempio n. 3
0
        private static void Application_ThreadException(object sender, ThreadExceptionEventArgs e)
        {
            ErrorForm errorForm = new ErrorForm(e.Exception, new StackTrace());

            errorForm.ShowDialog(null);
        }