/* * 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 { /// /// A reviewable filter frequency attribute attached to a specific channel. /// public class ReviewableSampleRateAttribute : Slice.Control.Event.Module.ReviewableAttribute { /// /// Initialize an instance of this class. /// /// /// /// The to which this attribute is attached. /// /// public ReviewableSampleRateAttribute(Event.Module module) : base("Sample Rate", delegate { return module.SampleRateHz.ToString("N"); }) { } } /// /// A reviewable filter frequency attribute attached to a specific channel. /// public class ReviewableTestDescriptionAttribute : Slice.Control.Event.Module.ReviewableAttribute { /// /// Initialize an instance of this class. /// /// /// /// The to which this attribute is attached. /// /// public ReviewableTestDescriptionAttribute(Event.Module module) : base("Test Description", delegate { return module.ParentEvent.Description; }) { } } public class ReviewableHardwareFrequencyAttribute : Slice.Control.Event.Module.ReviewableAttribute { /// /// Initialize an instance of this class. /// /// /// /// The to which this attribute is attached. /// /// public ReviewableHardwareFrequencyAttribute(Event.Module module) : base("HW AAF", delegate { return module.AaFilterRateHz.ToString("N2"); }) { } } } // *** end Module *** } // *** end Event *** }