Ejemplo n.º 1
0
        private void BeforeQueryStatus(object sender, EventArgs e)
        {
            var button = (OleMenuCommand)sender;

            button.Enabled = button.Visible = ProjectHelpers.GetProjectOrSolution(out _project, out _solution);
        }
Ejemplo n.º 2
0
 private async void Execute(object sender, EventArgs e)
 {
     var files = ProjectHelpers.GetSelectedItemPaths();
     await SpriteService.GenerateSprite(files.First());
 }
 private IEnumerable <string> GetFiles()
 {
     return(ProjectHelpers.GetSelectedItemPaths().Where(file => Constants.SupporedExtensions.Contains(Path.GetExtension(file))));
 }
 private async void Execute(object sender, EventArgs e)
 {
     System.Collections.Generic.IEnumerable <string> files = ProjectHelpers.GetSelectedItemPaths();
     await SpriteService.GenerateSpriteAsync(files.First());
 }
Ejemplo n.º 5
0
 private static void SpriteImageSaving(object sender, SpriteImageGenerationEventArgs e)
 {
     ProjectHelpers.CheckFileOutOfSourceControl(e.FileName);
 }
Ejemplo n.º 6
0
 private static void SpriteImageSaved(object sender, SpriteImageGenerationEventArgs e)
 {
     ProjectHelpers.AddNestedFile(e.Document.FileName, e.FileName);
     OptimizeImage(e.FileName, e.Document.Optimize);
 }