Esempio n. 1
0
 private void hideModal()
 {
     if (InvokeRequired)
     {
         Invoke((MethodInvoker) delegate { hideModal(); });
         return;
     }
     panelConnector.Visible = true;
     panelFunctions.Visible = true;
     if (waitingWindow != null)
     {
         waitingWindow.Close();
         waitingWindow = null;
     }
     Application.DoEvents();
 }
        public void hideModal()
        {
            if (InvokeRequired)
            {
                Invoke((MethodInvoker) delegate { hideModal(); });
                return;
            }
            foreach (Control control in panelConnector.Controls)
            {
                control.Enabled = true;
            }
            foreach (Control control in panelFunctions.Controls)
            {
                control.Enabled = true;
            }
//            panelConnector.Visible = true;
//            panelFunctions.Visible = true;
            if (waitingWindow != null)
            {
                waitingWindow.Close();
                waitingWindow = null;
            }
            Application.DoEvents();
        }