Пример #1
0
        public void RequestClose()
        {
            try
            {
                if (m_closePending)
                {
                    return;
                }

                if (this.InvokeRequired)
                {
                    RequestCloseDelegate inv = new RequestCloseDelegate(this.RequestClose);

                    this.Invoke(inv, new object[] { });
                }
                else
                {
                    Close();
                    UiClient.Instance.SplashWindow = null;
                }
            }
            catch (Exception ex)
            {
                Engine.Instance.Logs.LogUnexpected(ex);
            }
        }
Пример #2
0
        public void RequestClose()
        {
            if (this.InvokeRequired)
            {
                RequestCloseDelegate inv = new RequestCloseDelegate(this.RequestClose);

                this.BeginInvoke(inv, new object[] { });
            }
            else
            {
                tmrTimer.Enabled = true;
            }
        }
Пример #3
0
        public void RequestClose()
        {
            if (m_closePending)
            {
                return;
            }

            if (this.InvokeRequired)
            {
                RequestCloseDelegate inv = new RequestCloseDelegate(this.RequestClose);

                this.Invoke(inv, new object[] { });
            }
            else
            {
                Close();
                UiClient.Instance.SplashWindow = null;
            }
        }