コード例 #1
0
        private void bwOnlineTasks_DoWork(object sender, DoWorkEventArgs e)
        {
            try
            {
                if (Engine.conf.GoogleLanguages == null || Engine.conf.GoogleLanguages.Count < 1)
                {
                    Engine.conf.GoogleLanguages = new GoogleTranslate(Engine.GoogleTranslateKey).GetLanguages();
                }

                if (Uploader.ProxySettings != null)
                {
                    Adapter.UpdateTinyPicShuk();
                }

                if (Adapter.CheckFTPAccounts())
                {
                    Adapter.TestFTPAccount(Adapter.GetFtpAcctActive(), true);
                }
            }
            catch (Exception ex)
            {
                FileSystem.AppendDebug("Error while performing Online Tasks", ex);
            }
        }