JobMaterialLink.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using System;
  2. using System.ComponentModel;
  3. using InABox.Core;
  4. namespace Comal.Classes
  5. {
  6. // Because JobMaterials is now auto-generated (YAY Views)
  7. // This class is no longer used (no ID)
  8. // [Obsolete("JobMaterials Is Now a View")]
  9. // public class JobMaterialLink : EntityLink<JobMaterial>, IJobMaterial/* , IDimensioned */
  10. // {
  11. // public override Guid ID { get; set; }
  12. //
  13. // public JobLink Job { get; set; }
  14. //
  15. // public ProductLink Product { get; set; }
  16. //
  17. // public ProductStyleLink Style { get; set; }
  18. //
  19. // [NullEditor]
  20. // [Obsolete("Replaced with Dimensions", true)]
  21. // public double UnitSize { get; set; }
  22. //
  23. // public StockDimensions Dimensions { get; set; }
  24. //
  25. // protected override void Init()
  26. // {
  27. // base.Init();
  28. // Job = new JobLink();
  29. // Product = new ProductLink();
  30. // //Product.PropertyChanged += Product_PropertyChanged;
  31. // Style = new ProductStyleLink();
  32. // Dimensions = new StockDimensions();
  33. // }
  34. //
  35. // // private void Product_PropertyChanged(object sender, PropertyChangedEventArgs e)
  36. // // {
  37. // // if (new Column<Product>(x=>x.UnitSize).IsEqualTo(e.PropertyName))
  38. // // UnitSize = Product.UnitSize;
  39. // // else if (new Column<Product>(x=>x.DefaultStyle).IsEqualTo(e.PropertyName))
  40. // // Style = Product.DefaultStyle;
  41. // // }
  42. //
  43. // }
  44. }