Add constructor that takes a text argument

This commit is contained in:
Ross Ferguson
2020-06-20 12:15:08 +01:00
committed by BDisp
parent 6531dd1694
commit 363367f92e

View File

@@ -91,6 +91,19 @@ namespace Terminal.Gui {
Text = text;
}
/// <summary>
/// Public constructor
/// </summary>
/// <param name="text"></param>
public ComboBox (ustring text) : base ()
{
search = new TextField ("");
listview = new ListView () { LayoutStyle = LayoutStyle.Computed, CanFocus = true };
Initialize ();
Text = text;
}
/// <summary>
/// Public constructor
/// </summary>