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();
        }
        protected override async task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            await JoinableTaskFactory.SwitchToMainThreadAsync();

            await Logger.InitializeAsync(this, Vsix.Name);

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

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