Exemplo n.º 1
0
        private void QueueInstallLanguageWorkerThread(object state)
        {
            object[]  args          = state as object[];
            string    installPath   = (string)args[0];
            string    targetCulture = (string)args[1];
            IDbDriver dataSource    = (IDbDriver)args[2];
            string    tableName     = (string)args[3];

            try
            {
                DisableForm();

                ResourceTool.ImportLanguage(installPath, targetCulture, dataSource, tableName, new AppendLogCallback(this.AppendToLog));
                CloseForm();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Import Failed", MessageBoxButtons.OK, MessageBoxIcon.Information);
                EnableForm();
            }
            finally
            {
            }
        }