Example #1
0
        /// <summary>
        /// Call this to dismiss the splash screen
        /// </summary>
        public void Close()
        {
            try
            {
                waitUntilUpTime();

                if (_form != null)
                {
                    _form.Dismiss();
                    _form = null;
                }
            }
            catch (Exception ex)
            {
                Log.Debug(ex.ToString());
            }
        }
Example #2
0
        /// <summary>
        /// Call this to dismiss the splash screen
        /// </summary>
        public void Close()
        {
            try
            {
                waitUntilUpTime();

                if (_form != null)
                {
                    _form.Dismiss();
                    _form = null;
                }

                if (_backgroundWorker != null)
                {
                    _backgroundWorker.CancelAsync();
                    _backgroundWorker.Dispose();
                    _backgroundWorker = null;
                }
            }
            catch
            {
            }
        }