init
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* DTS.Slice.Control.Event.TestInformation.cs
|
||||
*
|
||||
* Copyright © 2009
|
||||
* Diversified Technical Systems, Inc.
|
||||
* All Rights Reserved
|
||||
*/
|
||||
|
||||
using DTS.Common.Utilities;
|
||||
using DTS.Common.Utilities.DotNetProgrammingConstructs;
|
||||
|
||||
namespace DTS.Slice.Control
|
||||
{
|
||||
// *** see DTS.Slice.Control.DAS.Event.cs ***
|
||||
public partial class Event
|
||||
{
|
||||
/// <summary>
|
||||
/// Internal representation of DAS event test information.
|
||||
/// </summary>
|
||||
private class TestInformation : Exceptional
|
||||
{
|
||||
/// <summary>
|
||||
/// Get/set the <see cref="string"/> ID of the test associated with this DAS event.
|
||||
/// </summary>
|
||||
public string Id
|
||||
{
|
||||
get => _Id.Value;
|
||||
set => _Id.Value = value;
|
||||
}
|
||||
private readonly Property<string> _Id = new Property<string>("DTS.Slice.Control.Event.TestInformation.Id", null, false);
|
||||
|
||||
/// <summary>
|
||||
/// Get/set the <see cref="string"/> description of the test associated with this DAS event.
|
||||
/// </summary>
|
||||
public string Description
|
||||
{
|
||||
get => _Description.Value;
|
||||
set => _Description.Value = value;
|
||||
}
|
||||
private readonly Property<string> _Description = new Property<string>("DTS.Slice.Control.Event.TestInformation.Description", null, false);
|
||||
|
||||
/// <summary>
|
||||
/// Initialize an instance of the DTS.Slice.Control.Event.TestInformation class.
|
||||
/// </summary>
|
||||
public TestInformation()
|
||||
{ //
|
||||
// NOTE that the invocation of this constructor will leave this class'
|
||||
// properties uninitialized.
|
||||
} //
|
||||
|
||||
/// <summary>
|
||||
/// Initialize an instance of the DTS.Slice.Control.Event.TestInformation class.
|
||||
/// </summary>
|
||||
///
|
||||
/// <param name="id">
|
||||
/// The <see cref="string"/> ID of the test associated with this DAS event.
|
||||
/// </param>
|
||||
///
|
||||
/// <param name="description">
|
||||
/// The <see cref="string"/> description of the test associated with this DAS event.
|
||||
/// </param>
|
||||
///
|
||||
public TestInformation(string id, string description)
|
||||
{
|
||||
try
|
||||
{
|
||||
Id = id;
|
||||
Description = description;
|
||||
}
|
||||
|
||||
catch (System.Exception ex)
|
||||
{
|
||||
throw new Exception(
|
||||
string.Format(
|
||||
Serialization.StringResources.Strings.DTS_Slice_Control_Event_ConstructionFailedString, GetType().FullName),
|
||||
ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user