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, 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(x=>x.UnitSize).IsEqualTo(e.PropertyName)) // // UnitSize = Product.UnitSize; // // else if (new Column(x=>x.DefaultStyle).IsEqualTo(e.PropertyName)) // // Style = Product.DefaultStyle; // // } // // } }