DataCommands.cs 510 B

123456789101112131415161718192021222324
  1. using Prism.Commands;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace InvestTracker.Commands
  8. {
  9. public class DataCommands
  10. {
  11. public static DelegateCommand ExitCommand { get; set; }
  12. static DataCommands()
  13. {
  14. ExitCommand = new DelegateCommand(ExitCommandExecuted);
  15. }
  16. public static void ExitCommandExecuted()
  17. {
  18. App.Current.Shutdown();
  19. }
  20. }
  21. }