mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Add constructor that takes a text argument
This commit is contained in:
@@ -78,6 +78,19 @@ namespace Terminal.Gui {
|
||||
Initialize ();
|
||||
}
|
||||
|
||||
/// <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>
|
||||
|
||||
Reference in New Issue
Block a user