mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-30 01:38:01 +01:00
ComboBox wire source directly to ListView
This commit is contained in:
@@ -49,7 +49,8 @@ namespace Terminal.Gui {
|
||||
if (source == null) {
|
||||
Source = null;
|
||||
} else {
|
||||
Source = MakeWrapper (source);
|
||||
listview.SetSource (source);
|
||||
Source = listview.Source;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -106,11 +107,6 @@ namespace Terminal.Gui {
|
||||
SetSource (source);
|
||||
}
|
||||
|
||||
static IListDataSource MakeWrapper (IList source)
|
||||
{
|
||||
return new ListWrapper (source);
|
||||
}
|
||||
|
||||
private void Initialize ()
|
||||
{
|
||||
ColorScheme = Colors.Base;
|
||||
|
||||
Reference in New Issue
Block a user