コード例 #1
0
        private void BeforeQueryStatus(object sender, EventArgs e)
        {
            var button = (OleMenuCommand)sender;

            button.Enabled = button.Visible = ProjectHelpers.GetProjectOrSolution(out _project, out _solution);
        }
コード例 #2
0
 private async void Execute(object sender, EventArgs e)
 {
     var files = ProjectHelpers.GetSelectedItemPaths();
     await SpriteService.GenerateSprite(files.First());
 }
コード例 #3
0
 private IEnumerable <string> GetFiles()
 {
     return(ProjectHelpers.GetSelectedItemPaths().Where(file => Constants.SupporedExtensions.Contains(Path.GetExtension(file))));
 }
コード例 #4
0
 private async void Execute(object sender, EventArgs e)
 {
     System.Collections.Generic.IEnumerable <string> files = ProjectHelpers.GetSelectedItemPaths();
     await SpriteService.GenerateSpriteAsync(files.First());
 }
コード例 #5
0
ファイル: SpriteService.cs プロジェクト: natiki/ImageSprites
 private static void SpriteImageSaving(object sender, SpriteImageGenerationEventArgs e)
 {
     ProjectHelpers.CheckFileOutOfSourceControl(e.FileName);
 }
コード例 #6
0
 private static void SpriteImageSaved(object sender, SpriteImageGenerationEventArgs e)
 {
     ProjectHelpers.AddNestedFile(e.Document.FileName, e.FileName);
     OptimizeImage(e.FileName, e.Document.Optimize);
 }