9df0db67ee5f170fdb9a931b764fe3199c418074
[CSharpForFun/.git] / MonoDevelop / addins / MonoDevelop.HelloWorld / MonoDevelop.HelloWorld / Commands.cs
1 using System;
2 using System.Linq;
3 using MonoDevelop.Components.Commands;
4 using MonoDevelop.Ide;
5 using MonoDevelop.Projects;
6
7
8 namespace MonoDevelop.HelloWorld
9 {
10         public enum Commands
11         {
12                 ShowFiles,
13         }
14
15         public class ShowFilesCommandHandler : CommandHandler
16         {
17                 protected override void Run()
18                 {
19                         var proj = IdeApp.Workspace.GetAllProjects ().FirstOrDefault ();
20                         if (proj != null)
21                         {
22                                 var dlg = new ShowFilesDialog (proj);
23                                 MessageService.ShowCustomDialog (dlg);
24                         }
25                 }
26         }
27 }
28