예제 #1
0
        /// <summary>
        /// Method called to close the update form
        /// </summary>
        public static void CloseForm()
        {
            // No exception here
            if (Instance == null || Instance.IsDisposed)
            {
                return;
            }

            try
            {
                Instance.Invoke((Action) delegate
                {
                    Instance.Close();
                    Instance = null;
                });
            }
            catch { }
        }