Ejemplo n.º 1
0
        protected override void OnInitialized(EventArgs e)
        {
            this.config           = new Leayal.Ini.IniFile(System.IO.Path.Combine(Leayal.AppInfo.AssemblyInfo.DirectoryPath, "config.ini"));
            this._patchcontroller = this.CreatePatchController();
            base.OnInitialized(e);

            var myIcon = Properties.Resources.haru_sd_WM1UAm_256px;

            this.Icon = Imaging.CreateBitmapSourceFromHIcon(myIcon.Handle, Int32Rect.Empty, System.Windows.Media.Imaging.BitmapSizeOptions.FromWidthAndHeight(myIcon.Width, myIcon.Height));
        }
Ejemplo n.º 2
0
        private Classes.PatchController CreatePatchController()
        {
            Classes.PatchController result = new Classes.PatchController();

            result.BuildStarted         += this.PatchController_BuildStarted;
            result.BuildProgressChanged += this.PatchController_BuildProgressChanged;
            result.BuildStepChanged     += this.PatchController_BuildStepChanged;
            result.BuildCompleted       += this.PatchController_BuildCompleted;

            result.CheckForTranslationVersionCompleted += this.PatchController_CheckForTranslationVersionCompleted;
            result.DownloadTranslationCompleted        += this.PatchController_DownloadTranslationCompleted;
            result.DownloadTranslationProgressChanged  += this.PatchController_DownloadTranslationProgressChanged;
            result.DownloadBegin += this.PatchController_DownloadBegin;

            return(result);
        }