ConsignmentEdit.xaml.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Security.Cryptography.X509Certificates;
  5. using System.Text;
  6. using InABox.Mobile;
  7. using Xamarin.Forms;
  8. using Xamarin.Forms.Xaml;
  9. namespace PRS.Mobile
  10. {
  11. [XamlCompilation(XamlCompilationOptions.Compile)]
  12. public partial class ConsignmentEdit
  13. {
  14. public ConsignmentEdit(ConsignmentShell consignment, PurchaseOrderShell? order = null)
  15. {
  16. InitializeComponent();
  17. ViewModel.Item = consignment;
  18. if (order != null)
  19. ViewModel.LoadOrder(order);
  20. }
  21. private void _save_OnClicked(object sender, MobileMenuButtonClickedEventArgs args)
  22. {
  23. // Check that Supplier is not empty
  24. //throw new NotImplementedException();
  25. }
  26. private void TakePhoto_Clicked(object sender, EventArgs e)
  27. {
  28. //throw new NotImplementedException();
  29. }
  30. private void BrowseLibrary_Clicked(object sender, EventArgs e)
  31. {
  32. //throw new NotImplementedException();
  33. }
  34. private void AddNote_Clicked(object sender, MobileMenuButtonClickedEventArgs args)
  35. {
  36. //throw new NotImplementedException();
  37. }
  38. private void Details_OnOnDetailsChanged(object sender, MobileViewChangedEventArgs eventargs)
  39. {
  40. ViewModel.DoChanged(eventargs);
  41. }
  42. private void AddItem_Clicked(object sender, MobileMenuButtonClickedEventArgs args)
  43. {
  44. Items.AddPOItems();
  45. }
  46. }
  47. }