public Mesurement(int position, string source, string dest, CableType type, int now, double dist, int cop, int cow, double realA) { Number = position; Source = source; Destination = dest; Type = type; NumberOfWire = now; Distance = dist; CountOfPig = cop; CountOfWeld = cow; MaxAttenuation = CountOfWeld * MainWindow.activeProject.WeldAttenuation + CountOfPig * MainWindow.activeProject.PigAttenuation + Distance * type.Attenuation; RealAttenuation = realA; PropperValue = RealAttenuation < MaxAttenuation; }
public Mesurement(int position, string source, string dest, CableType type, int now, double dist, int cop, int cow, double realA, bool result) : this(position, source, dest, type, now, dist, cop, cow, realA) { IsPropperValueManuallySet = true; PropperValue = result; }