init
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* DTS.Slice.Control.Event.Module.ReviewableAttribute.cs
|
||||
*
|
||||
* Copyright © 2009
|
||||
* Diversified Technical Systems, Inc.
|
||||
* All Rights Reserved
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace DTS.Slice.Control
|
||||
{
|
||||
// *** see DTS.Slice.Control.Event.cs ***
|
||||
public partial class Event
|
||||
{
|
||||
|
||||
// *** see DTS.Slice.Control.Event.Module.cs ***
|
||||
public partial class Module
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// A reviewable attribute attached to a specific channel.
|
||||
/// </summary>
|
||||
abstract public partial class ReviewableAttribute
|
||||
: Slice.Control.ReviewableAttribute
|
||||
{
|
||||
/// <summary>
|
||||
/// The concrete class should implement this constructor.
|
||||
/// </summary>
|
||||
///
|
||||
/// <param name="channel">
|
||||
/// The <see cref="DTS.Slice.Control.Event.Module"/> to which a specific instance
|
||||
/// of this reviewable attribute class is attached. It should be used by this class' subclass'
|
||||
/// DetermineAttributeValueString method.
|
||||
/// </param>
|
||||
///
|
||||
public ReviewableAttribute(Event.Module channel)
|
||||
: this(null, null)
|
||||
{
|
||||
try
|
||||
{
|
||||
throw new NotImplementedException("cannot initialize " + this.GetType().FullName + " with this constructor; must call parameterized version");
|
||||
}
|
||||
|
||||
catch (System.Exception ex)
|
||||
{
|
||||
throw new Module.ReviewableAttribute.Exception("encountered problem constructing " + this.GetType().FullName, ex);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initialize an instance of this class.
|
||||
/// </summary>
|
||||
///
|
||||
/// <param name="name">
|
||||
/// The <see cref="string"/> name of the attribute represented by this class.
|
||||
/// </param>
|
||||
///
|
||||
/// <param name="calculateValue">
|
||||
/// The <see cref="DTS.Slice.Control.ReviewableAttribute.DetermineValueString"/>
|
||||
/// </param>
|
||||
///
|
||||
protected ReviewableAttribute(string name, DetermineValueString calculateValue)
|
||||
: base(name, calculateValue)
|
||||
{
|
||||
}
|
||||
}
|
||||
} // *** end Module ***
|
||||
} // *** end Event ***
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user