init
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
using System.Windows;
|
||||
using Microsoft.Practices.Prism.Events;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// Progress bar event
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// notification event for progress bars
|
||||
/// </remarks>
|
||||
public class HelpTextEvent : CompositePresentationEvent<HelpTextEventArg> { }
|
||||
|
||||
public class HelpTextEventArg
|
||||
{
|
||||
public object Sender { get; set; }
|
||||
public ToolTipEventArgs E { get; set; }
|
||||
|
||||
public HelpTextEventArg(object sender, ToolTipEventArgs e)
|
||||
{
|
||||
Sender = sender;
|
||||
E = e;
|
||||
}
|
||||
|
||||
public HelpTextEventArg()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
namespace DTS.Common.Interface.Sensors
|
||||
{
|
||||
/// <summary>
|
||||
/// the format the scaler is in
|
||||
/// </summary>
|
||||
public enum Forms { ArbitraryLowAndHigh };
|
||||
public interface IDigitalInputScaleMultiplier
|
||||
{
|
||||
Forms Form { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// for arbirary low/high, this is the low value, the value 0 should be displayed as (OFF)
|
||||
/// </summary>
|
||||
double DefaultValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// for arbitrary low/high, this is the high value, the value 1 should be displayed as (ON)
|
||||
/// </summary>
|
||||
double ActiveValue { get; set; }
|
||||
|
||||
bool SimpleEquals(IDigitalInputScaleMultiplier rhs);
|
||||
|
||||
/// <summary>
|
||||
/// serializes scaler to a string
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
string ToSerializeDbString();
|
||||
|
||||
/// <summary>
|
||||
/// deserializes a scaler from a string, regardless of format
|
||||
/// </summary>
|
||||
/// <param name="s"></param>
|
||||
void FromDbSerializeString(string s);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user