KanbanEditDocumentsView.xaml.cs 979 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using InABox.Mobile;
  7. using Xamarin.Forms;
  8. using Xamarin.Forms.Xaml;
  9. using XF.Material.Forms.UI;
  10. using XF.Material.Forms.UI.Dialogs;
  11. namespace PRS.Mobile
  12. {
  13. [XamlCompilation(XamlCompilationOptions.Compile)]
  14. public partial class KanbanEditDocumentsView
  15. {
  16. public KanbanEditDocumentsView()
  17. {
  18. InitializeComponent();
  19. }
  20. public override void Refresh()
  21. {
  22. _images.ItemsSource = ViewModel?.Documents;
  23. _images.ParentID = ViewModel?.Item.ID ?? Guid.Empty;
  24. }
  25. public async Task<bool> AddImage<T,TOptions>(TOptions options)
  26. where T : MobileImageSource<T,TOptions>
  27. where TOptions: MobileImageOptions<T>, new()
  28. {
  29. return await _images.AddImage<T, TOptions, KanbanDocumentShell>(options);
  30. }
  31. }
  32. }