HomeGuidContentViewModel.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using PDF_Office.Model.PDFTool;
  2. using PDF_Office.Views.HomePanel.PDFTools;
  3. using Prism.Commands;
  4. using Prism.Mvvm;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace PDF_Office.ViewModels.HomePanel
  11. {
  12. public class HomeGuidContentViewModel:BindableBase
  13. {
  14. public DelegateCommand<ToolItem> QuickToolsCommand { get; set; }
  15. public HomeGuidContentViewModel()
  16. {
  17. QuickToolsCommand = new DelegateCommand<ToolItem>(QuickTools_Click);
  18. }
  19. public void QuickTools_Click(ToolItem toolItem)
  20. {
  21. switch (toolItem.Tag)
  22. {
  23. case PDFToolType.Split:
  24. Split_Click();
  25. break;
  26. case PDFToolType.Extract:
  27. break;
  28. case PDFToolType.Insert:
  29. break;
  30. case PDFToolType.Compress:
  31. break;
  32. case PDFToolType.Merge:
  33. break;
  34. case PDFToolType.Print:
  35. break;
  36. case PDFToolType.Security:
  37. break;
  38. }
  39. }
  40. private void Split_Click()
  41. {
  42. }
  43. }
  44. }