This commit is contained in:
parent
bf25814d5b
commit
453b4049e2
53
PROMS/Volian.Controls.Library/vlnTreeCombo.cs
Normal file
53
PROMS/Volian.Controls.Library/vlnTreeCombo.cs
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
using System;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
using AT.STO.UI.Win;
|
||||||
|
|
||||||
|
namespace Volian.Controls.Library
|
||||||
|
{
|
||||||
|
internal class vlnTreeCombo : DropDownPanel
|
||||||
|
{
|
||||||
|
#region Constructor / Destructor
|
||||||
|
public vlnTreeCombo(): base()
|
||||||
|
{
|
||||||
|
// The base class's property must be set because
|
||||||
|
// this derived implementation hides the setter.
|
||||||
|
base.DropDownControl = new DropDownTree();
|
||||||
|
this.DropDownControl.BorderStyle = BorderStyle.None;
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
#region Public Properties
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the tree control, that is displayed in the dropdown.
|
||||||
|
/// </summary>
|
||||||
|
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||||
|
public new DropDownTree DropDownControl // new is on purpose to change the property's data type and to hide the setter.
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (base.DropDownControl != null)
|
||||||
|
{
|
||||||
|
return base.DropDownControl as DropDownTree;
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public new DropDownNode Value
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (this.DropDownControl != null)
|
||||||
|
{
|
||||||
|
return this.DropDownControl.Value as DropDownNode;
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
set { base.Value = value; }
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user