Exemple #1
0
        static public void Hide()
        {
            Thread.Sleep(100);
            if (waitSplash != null)
            {
                waitSplash.Invoke(new CloseDelegate(WaitSplash.CloseFormInternal));
            }

            if (CallerForm != null)
            {
                // Thread.Sleep(300);
                CallerForm.TopMost       = true;
                CallerForm.TopMost       = false;
                CallerForm.ActiveControl = _ActiveControl;
                CallerForm = null;
            }

            if (thread != null)
            {
                thread.Abort();
                thread = null;
            }
        }