mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Add constructor that takes a text argument
This commit is contained in:
@@ -91,6 +91,19 @@ namespace Terminal.Gui {
|
|||||||
Text = text;
|
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>
|
/// <summary>
|
||||||
/// Public constructor
|
/// Public constructor
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user