This commit is contained in:
30
PROMS/DropDownPanel/Interfaces/IDropDownAware.cs
Normal file
30
PROMS/DropDownPanel/Interfaces/IDropDownAware.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
|
||||
namespace AT.STO.UI.Win
|
||||
{
|
||||
/// <summary>
|
||||
/// Standard interface that has to be implemented by control's that
|
||||
/// should be diplayed in the dropdown area of the DropDownPanel.
|
||||
/// </summary>
|
||||
public interface IDropDownAware
|
||||
{
|
||||
#region Event Declarations
|
||||
/// <summary>
|
||||
/// Fired either on OK, Cancel or a click outside the control to indicate
|
||||
/// that the user has finished editing.
|
||||
/// </summary>
|
||||
event DropDownValueChangedEventHandler FinishEditing;
|
||||
|
||||
/// <summary>
|
||||
/// Fired on any change of the controls's value during the editing process.
|
||||
/// </summary>
|
||||
event DropDownValueChangedEventHandler ValueChanged;
|
||||
#endregion
|
||||
#region Public Properties
|
||||
/// <summary>
|
||||
/// Gets or sets the controls' value.
|
||||
/// </summary>
|
||||
object Value { get; set; }
|
||||
#endregion
|
||||
}
|
||||
}
|
10
PROMS/DropDownPanel/Interfaces/ILookupItem.cs
Normal file
10
PROMS/DropDownPanel/Interfaces/ILookupItem.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
|
||||
namespace AT.STO.UI.Win
|
||||
{
|
||||
public interface ILookupItem<T> where T: struct
|
||||
{
|
||||
T Id { get; }
|
||||
string Text { get; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user