123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using System;
- using System.ComponentModel;
- using InABox.Core;
- namespace Comal.Classes
- {
- // Because JobMaterials is now auto-generated (YAY Views)
- // This class is no longer used (no ID)
- // [Obsolete("JobMaterials Is Now a View")]
- // public class JobMaterialLink : EntityLink<JobMaterial>, IJobMaterial/* , IDimensioned */
- // {
- // public override Guid ID { get; set; }
- //
- // public JobLink Job { get; set; }
- //
- // public ProductLink Product { get; set; }
- //
- // public ProductStyleLink Style { get; set; }
- //
- // [NullEditor]
- // [Obsolete("Replaced with Dimensions", true)]
- // public double UnitSize { get; set; }
- //
- // public StockDimensions Dimensions { get; set; }
- //
- // protected override void Init()
- // {
- // base.Init();
- // Job = new JobLink();
- // Product = new ProductLink();
- // //Product.PropertyChanged += Product_PropertyChanged;
- // Style = new ProductStyleLink();
- // Dimensions = new StockDimensions();
- // }
- //
- // // private void Product_PropertyChanged(object sender, PropertyChangedEventArgs e)
- // // {
- // // if (new Column<Product>(x=>x.UnitSize).IsEqualTo(e.PropertyName))
- // // UnitSize = Product.UnitSize;
- // // else if (new Column<Product>(x=>x.DefaultStyle).IsEqualTo(e.PropertyName))
- // // Style = Product.DefaultStyle;
- // // }
- //
- // }
- }
|