This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
namespace MembranePoreTester.Models
|
||||
using System.ComponentModel;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace MembranePoreTester.Models
|
||||
{
|
||||
public class BubblePointRecord
|
||||
public class BubblePointRecord: INotifyPropertyChanged
|
||||
{
|
||||
public string SampleType { get; set; } // 平板膜/中空纤维膜
|
||||
public string SampleSpec { get; set; } // 规格
|
||||
@@ -8,7 +11,28 @@
|
||||
public double SoakingTime { get; set; } // 浸润时间(小时)
|
||||
public TestLiquid Liquid { get; set; } // 测试液体
|
||||
public string LiquidManufacturer { get; set; } // 生产厂家
|
||||
public double BubblePointPressure { get; set; } // 泡点压力(数值)
|
||||
|
||||
|
||||
private double _bubblePointPressure;
|
||||
|
||||
public double BubblePointPressure // 泡点压力(数值)
|
||||
{
|
||||
get => _bubblePointPressure;
|
||||
set
|
||||
{
|
||||
if (_bubblePointPressure != value)
|
||||
{
|
||||
_bubblePointPressure = value;
|
||||
OnPropertyChanged(); // 需要触发通知
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public double BubbleCurrentPressure { get; set; } // 泡点压力(数值)
|
||||
public string PressureUnit { get; set; } // Pa/cmHg/psi
|
||||
public DateTime TestDate { get; set; } = DateTime.Now;
|
||||
public string Tester { get; set; }
|
||||
@@ -26,5 +50,14 @@
|
||||
_ => 0
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
|
||||
{
|
||||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user