using DTS.Common.Base;
namespace DTS.Common.Classes.Groups
{
// ReSharper disable once InconsistentNaming
///
/// this class encapsulates a group, or basically a .grp file
///
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; }
///
/// all channels in the gGRP file
///
public GroupGRPImportChannel [] Channels { get; set; } = { };
///
/// all errors discovered while GRP file
/// this would include things like an empty file, a file with garbage only
///
public GroupGRPImportError[] GroupErrors { get; set; } = null;
private bool _groupNameHasError;
///
/// 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
///
public bool GroupNameHasError
{
get => _groupNameHasError;
set => SetProperty(ref _groupNameHasError, value, "GroupNameHasError");
}
}
}