init
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
|
||||
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user