Files
DP44/Common/DTS.CommonCore/.svn/pristine/87/87527c01c2f14098e8cd3c1f42682581f23e034e.svn-base

41 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2026-04-17 14:55:32 -04:00
using DTS.Common.Base;
using DTS.Common.Interface.TestSetups;
using System.Data;
namespace DTS.Common.Classes.TestSetups
{
/// <summary>
/// Describes a record in the ROIPeriodChannels table
/// </summary>
public class ROIPeriodChannelRecord : BasePropertyChanged, IROIPeriodChannelRecord
{
/// <summary>
/// The field that matches the same field in the TestSetupROIs table
/// </summary>
private int _testSetupROIId;
public int TestSetupROIId
{
get => _testSetupROIId;
set => SetProperty(ref _testSetupROIId, value, "TestSetupROIId");
}
/// <summary>
/// The name of a channel in a ROI period.
/// </summary>
private string _channelName;
public string ChannelName
{
get => _channelName;
set => SetProperty(ref _channelName, value, "ChannelName");
}
/// <summary>
/// Builds a ROIPeriodChannel record after a call to sp_ROIPeriodChannelsGet
/// </summary>
/// <param name="reader"></param>
public ROIPeriodChannelRecord(IDataReader reader)
{
TestSetupROIId = Utility.GetInt(reader, "TestSetupROIId");
ChannelName = Utility.GetString(reader, "ChannelName", "");
}
}
}