示例#1
0
        /// ----------------------------------------------------------------------------------------
        /// <summary>
        /// Closes the splash screen
        /// </summary>
        /// ----------------------------------------------------------------------------------------
        void IFwSplashScreen.Close()
        {
            if (m_splashScreen == null)
            {
                return;
            }

            lock (m_splashScreen.m_Synchronizer)
            {
                try
                {
                    m_splashScreen.Invoke(new MethodInvoker(m_splashScreen.RealClose));
                }
                catch
                {
                    // Something bad happened, but we are closing anyways :)
                }
            }
            m_thread.Join();
            lock (m_splashScreen.m_Synchronizer)
            {
                m_splashScreen.Dispose();
                m_splashScreen = null;
            }

            m_hiddenForm.Close();
            m_thread = null;
        }
示例#2
0
        /// ----------------------------------------------------------------------------------------
        /// <summary>
        /// Closes the splash screen
        /// </summary>
        /// ----------------------------------------------------------------------------------------
        public void Close()
        {
            if (m_splashScreen == null)
            {
                return;
            }

            lock (m_splashScreen.m_Synchronizer)
            {
                try
                {
                    m_splashScreen.Invoke(new MethodInvoker(m_splashScreen.RealClose));
                }
                catch
                {
                    // Something bad happened, but we are closing anyways :)
                }
            }
#if !__MonoCS__
            if (m_thread != null)
            {
                m_thread.Join();
            }
#endif
            lock (m_splashScreen.m_Synchronizer)
            {
                m_splashScreen.Dispose();
                m_splashScreen = null;
            }
#if !__MonoCS__
            m_thread = null;
#endif
        }