Ejemplo n.º 1
0
        private void LoadLanguage()
        {
            TheTVDB db      = this.mDoc.GetTVDB(true, "Preferences-LoadLanguages");
            bool    aborted = false;

            try
            {
                if (!db.Connected)
                {
                    db.Connect();
                }
            }
            catch (ThreadAbortException)
            {
                aborted = true;
            }
            db.Unlock("Preferences-LoadLanguages");
            if (!aborted)
            {
                this.BeginInvoke(LoadLanguageDone);
            }
        }