示例#1
0
        public override void Initialize()
        {
            base.Initialize();

            var progress = new Progress <BuilderProgress>();

            progress.ProgressChanged += ProgressChanged;

            _context                   = new AdminPatchContext(CurrentWindow.AdminSettings, progress);
            _context.Logger            = new MHLab.Patch.Utilities.Logging.Logger(CurrentWindow.AdminSettings.GetLogsFilePath(), CurrentWindow.AdminSettings.DebugMode);
            _context.Serializer        = new NewtonsoftSerializer();
            _context.LocalizedMessages = CurrentWindow.Localization;

            _builder = new PatchBuilder(_context);

            InitializePatches();
        }
        public override void Initialize()
        {
            base.Initialize();

            var progress = new Progress <BuilderProgress>();

            progress.ProgressChanged += ProgressChanged;

            _context                   = new AdminPatchContext(CurrentWindow.AdminSettings, progress);
            _context.Logger            = new SimpleLogger(_context.FileSystem, CurrentWindow.AdminSettings.GetLogsFilePath(), CurrentWindow.AdminSettings.DebugMode);
            _context.Serializer        = new JsonSerializer();
            _context.LocalizedMessages = CurrentWindow.Localization;

            _builder = new PatchBuilder(_context);

            InitializePatches();
        }