private TranslationResource CreateTranslationResource()
        {
            TranslationResource TranslationResource = new TranslationResource();

            TranslationResource.CheckForTranslationVersionCompleted += this.TranslationResource_CheckForTranslationVersionCompleted;
            TranslationResource.DownloadTranslationProgressChanged  += this.TranslationResource_DownloadTranslationProgressChanged;
            TranslationResource.DownloadTranslationCompleted        += this.TranslationResource_DownloadTranslationCompleted;
            TranslationResource.DownloadBegin += this.TranslationResource_DownloadBegin;
            return(TranslationResource);
        }
        public void BuildAsync(TranslationResource translationResource, string gameDirectory)
        {
            if (!this.IsBusy)
            {
                if (string.IsNullOrWhiteSpace(this.OutputPath))
                {
                    throw new ArgumentNullException("OutputPath property shouldn't be null or empty.");
                }

                if (translationResource == null)
                {
                    throw new ArgumentNullException("TranslationResource property shouldn't be null.");
                }

                this.OnBuildStarted(EventArgs.Empty);
                this.bWorker.RunWorkerAsync(new WorkerArguments(this.OutputPath, translationResource, gameDirectory));
            }
        }
 public WorkerArguments(string _outputpath, TranslationResource _translationresource, string gameDirectory)
 {
     this.GameDirectory       = gameDirectory;
     this.OutputPath          = _outputpath;
     this.TranslationResource = _translationresource;
 }
 public PatchController()
 {
     this.patchbuilder        = this.CreateTranslationPatchBuilder();
     this.translationresource = this.CreateTranslationResource();
 }