init
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* DTS.Slice.Control.Event.Module.ReviewableSampleRateAttribute.cs
|
||||
*
|
||||
* Copyright © 2009
|
||||
* Diversified Technical Systems, Inc.
|
||||
* All Rights Reserved
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using DTS.Utilities;
|
||||
|
||||
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 filter frequency attribute attached to a specific channel.
|
||||
/// </summary>
|
||||
public class ReviewableSampleRateAttribute
|
||||
: Slice.Control.Event.Module.ReviewableAttribute
|
||||
{
|
||||
/// <summary>
|
||||
/// Initialize an instance of this class.
|
||||
/// </summary>
|
||||
///
|
||||
/// <param name="channel">
|
||||
/// The <see cref="Event.Module"/> to which this attribute is attached.
|
||||
/// </param>
|
||||
///
|
||||
public ReviewableSampleRateAttribute(Event.Module module)
|
||||
: base("Sample Rate", delegate { return module.SampleRateHz.ToString("N"); })
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A reviewable filter frequency attribute attached to a specific channel.
|
||||
/// </summary>
|
||||
public class ReviewableTestDescriptionAttribute
|
||||
: Slice.Control.Event.Module.ReviewableAttribute
|
||||
{
|
||||
/// <summary>
|
||||
/// Initialize an instance of this class.
|
||||
/// </summary>
|
||||
///
|
||||
/// <param name="channel">
|
||||
/// The <see cref="Event.Module"/> to which this attribute is attached.
|
||||
/// </param>
|
||||
///
|
||||
public ReviewableTestDescriptionAttribute(Event.Module module)
|
||||
: base("Test Description", delegate { return module.ParentEvent.Description; })
|
||||
{
|
||||
}
|
||||
}
|
||||
public class ReviewableHardwareFrequencyAttribute
|
||||
: Slice.Control.Event.Module.ReviewableAttribute
|
||||
{
|
||||
/// <summary>
|
||||
/// Initialize an instance of this class.
|
||||
/// </summary>
|
||||
///
|
||||
/// <param name="channel">
|
||||
/// The <see cref="Event.Module.Channel"/> to which this attribute is attached.
|
||||
/// </param>
|
||||
///
|
||||
public ReviewableHardwareFrequencyAttribute(Event.Module module)
|
||||
: base("HW AAF", delegate { return module.AaFilterRateHz.ToString("N2"); })
|
||||
{
|
||||
}
|
||||
}
|
||||
} // *** end Module ***
|
||||
} // *** end Event ***
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user