Files
DP44/Common/DTS.Common/Classes/Groups/GroupGRPImportGroup.cs

43 lines
1.5 KiB
C#
Raw Normal View History

2026-04-17 14:55:32 -04:00

using DTS.Common.Base;
namespace DTS.Common.Classes.Groups
{
// ReSharper disable once InconsistentNaming
/// <summary>
/// this class encapsulates a group, or basically a .grp file
/// </summary>
public class GroupGRPImportGroup : BasePropertyChanged
{
public bool Included { get; set; } = true;
public bool Overwrite { get; set; } = true;
public string GroupName { get; set; }
public string GroupTags { get; set; }
public string ImportingUserTags { get; set; }
public string SourceFile { get; set; }
/// <summary>
/// all channels in the gGRP file
/// </summary>
public GroupGRPImportChannel[] Channels { get; set; } = { };
/// <summary>
/// all errors discovered while GRP file
/// this would include things like an empty file, a file with garbage only
/// </summary>
public GroupGRPImportError[] GroupErrors { get; set; } = null;
private bool _groupNameHasError;
/// <summary>
/// indicates whether the group name specifically has an error
/// the group name is exposed in a textbox, the design of this field was to
/// control a red box around that textbox
/// </summary>
public bool GroupNameHasError
{
get => _groupNameHasError;
set => SetProperty(ref _groupNameHasError, value, "GroupNameHasError");
}
}
}