This commit is contained in:
2026-04-17 14:55:32 -04:00
commit bc3ac1d4c9
18017 changed files with 4371742 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
using System.ComponentModel;
using DTS.Common.Converters;
namespace DTS.Common.Enums
{
[TypeConverter(typeof(EnumDescriptionTypeConverter))]
public enum InitializationTypes
{
Aero,
Crash,
TSRAIR
}
}

View File

@@ -0,0 +1,21 @@
using System.Collections.Generic;
using DTS.Common.Base;
namespace DTS.Common.Interface.Groups
{
/// <summary>
/// controls parsing out channels from .GRP file, displaying results, and allowing selection of groups and renaming of groups
/// </summary>
public interface IGroupImportPreviewView : IBaseView
{
/// <summary>
/// validates currently selected groups, including channels and group names
/// </summary>
/// <param name="errors">any errors that were detected during validation. Errors indicate you can not continue</param>
/// <param name="warnings">any warnings that were detected during validation. Warnings are not fatal and user can continue
/// if they want
/// </param>
/// <returns>true if all groups selected in preview are valid, false if there are invalid groups selected</returns>
bool Validate(bool userIsAdmin, out List<string> errors, out List<string> warnings);
}
}

View File

@@ -0,0 +1,57 @@
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>
/// The id of a channel in a ROI period.
/// </summary>
private long _channelId;
public long ChannelId
{
get => _channelId;
set => SetProperty(ref _channelId, value, "ChannelId");
}
/// <summary>
/// Builds a ROIPeriodChannel record after a call to sp_ROIPeriodChannelsGet
/// </summary>
/// <param name="reader"></param>
public ROIPeriodChannelRecord(IDataReader reader, int storedProcedureVersionToUse)
{
TestSetupROIId = Utility.GetInt(reader, "TestSetupROIId");
ChannelName = Utility.GetString(reader, "ChannelName", "");
if (storedProcedureVersionToUse >= Constants.ROIPERIODCHANNELS_CHANNELID_DB_VERSION)
{
ChannelId = Utility.GetLong(reader, "ChannelId");
}
else
{
ChannelId = -1; //So we know the database doesn't have a ChannelId field in the ROIPeriodChannels table
}
}
}
}

View File

@@ -0,0 +1,11 @@
using DTS.Common.Base;
namespace DTS.Common.Interface
{
public interface IChannelGRMSSummary : IBaseClass
{
string ChannelName { get; set; }
int SampleRate { get; set; }
double GRMS { get; set; }
}
}