diff --git a/Terminal.Gui/Views/ComboBox.cs b/Terminal.Gui/Views/ComboBox.cs index b04d6dbc3..11e3c3aff 100644 --- a/Terminal.Gui/Views/ComboBox.cs +++ b/Terminal.Gui/Views/ComboBox.cs @@ -54,12 +54,12 @@ namespace Terminal.Gui { LayoutStyle = LayoutStyle.Computed, ColorScheme = Colors.Dialog }; - listview.SelectedChanged += () => { + listview.SelectedChanged += (object sender, ListViewItemEventArgs e) => { if(searchset.Count > 0) SetValue (searchset [listview.SelectedItem]); }; - Application.OnLoad += () => { + Application.Loaded += (object sender, Application.ResizedEventArgs e) => { // Determine if this view is hosted inside a dialog for (View view = this.SuperView; view != null; view = view.SuperView) { if (view is Dialog) { diff --git a/UICatalog/Scenarios/ListsAndCombos.cs b/UICatalog/Scenarios/ListsAndCombos.cs index eb5682d70..31daec9c3 100644 --- a/UICatalog/Scenarios/ListsAndCombos.cs +++ b/UICatalog/Scenarios/ListsAndCombos.cs @@ -35,7 +35,7 @@ namespace UICatalog.Scenarios { Y = Pos.Bottom (lbListView) + 1, Width = 30 }; - listview.OpenSelectedItem += (object sender, EventArgs text) => lbListView.Text = items [listview.SelectedItem]; + listview.OpenSelectedItem += (object sender, ListViewItemEventArgs e) => lbListView.Text = items [listview.SelectedItem]; Win.Add (lbListView, listview); // ComboBox