using Newtonsoft.Json; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tango.BL.Entities { public partial class ProcessParametersTable : ProcessParametersTableBase { public event EventHandler DyeingSpeedMinInkUptakeChanged; public const double DRYER_METERS_PER_CYCLE = 0.76; protected override void RaisePropertyChanged(string propName) { base.RaisePropertyChanged(propName); if (propName == nameof(DyeingSpeed) || propName == nameof(MinInkUptake)) { OnDyeingSpeedMinInkUptakeChanged(); } } protected virtual void OnDyeingSpeedMinInkUptakeChanged() { DyeingSpeedMinInkUptakeChanged?.Invoke(this, new EventArgs()); } [NotMapped] [JsonIgnore] public double DryerBufferLengthMeters { get { return DryerBufferLength * DRYER_METERS_PER_CYCLE; } } /// /// Initializes a new instance of the class. /// public ProcessParametersTable() : base() { } } }