private void BeforeQueryStatus(object sender, EventArgs e) { var button = (OleMenuCommand)sender; button.Enabled = button.Visible = ProjectHelpers.GetProjectOrSolution(out _project, out _solution); }
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()); }
private static void SpriteImageSaving(object sender, SpriteImageGenerationEventArgs e) { ProjectHelpers.CheckFileOutOfSourceControl(e.FileName); }
private static void SpriteImageSaved(object sender, SpriteImageGenerationEventArgs e) { ProjectHelpers.AddNestedFile(e.Document.FileName, e.FileName); OptimizeImage(e.FileName, e.Document.Optimize); }