DownloadFileCommand.cs 571 B

123456789101112131415161718192021222324
  1. using Blue;
  2. public class DownloadFileCommand : ICommand
  3. {
  4. private string url;
  5. private string fileType;
  6. private int projectID;
  7. public DownloadFileCommand(string url,string fileType,int projectID)
  8. {
  9. this.url = url;
  10. this.fileType = fileType;
  11. this.projectID = projectID;
  12. }
  13. public void OnExcute()
  14. {
  15. this.TriggerEvent<DownLoadMapFileEvent>(new DownLoadMapFileEvent()
  16. {
  17. Url = url,
  18. FileType = fileType,
  19. ProjectID = projectID
  20. });
  21. }
  22. }