Esempio n. 1
0
        protected override void Initialize()
        {
            Logger.Initialize(this, Vsix.Name);

            SpriteService.Initialize();
            CreateSpriteCommand.Initialize(this);
            UpdateSpriteCommand.Initialize(this);
            UpdateAllSpritesCommand.Initialize(this);

            base.Initialize();
        }
Esempio n. 2
0
        protected override async task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            await Logger.InitializeAsync(this, Vsix.Name);

            await SpriteService.Initialize();

            var commandService = await GetServiceAsync(typeof(IMenuCommandService)) as OleMenuCommandService;

            await JoinableTaskFactory.SwitchToMainThreadAsync();

            CreateSpriteCommand.Initialize(commandService);
            UpdateSpriteCommand.Initialize(commandService);
            UpdateAllSpritesCommand.Initialize(commandService);
        }