Exemple #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);
        }
 public static void Initialize(OleMenuCommandService commandService)
 {
     Instance = new UpdateAllSpritesCommand(commandService);
 }
Exemple #4
0
 public static void Initialize(Package package)
 {
     Instance = new UpdateAllSpritesCommand(package);
 }