Updating Scenarios to the changed ListView features.

This commit is contained in:
BDisp
2020-05-20 21:26:54 +01:00
parent 61e393d4af
commit b72974dea2

View File

@@ -1,5 +1,6 @@
using NStack;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
@@ -119,7 +120,7 @@ namespace UICatalog {
_rightPane.Add (_scenarioListView);
_categoryListView.SelectedItem = 0;
CategoryListView_SelectedChanged ();
_categoryListView.OnSelectedChanged ();
_statusBar = new StatusBar (new StatusItem [] {
//new StatusItem(Key.F1, "~F1~ Help", () => Help()),
@@ -227,6 +228,12 @@ namespace UICatalog {
used++;
}
}
public IList ToList ()
{
return Scenarios;
}
}
/// <summary>
@@ -254,7 +261,7 @@ namespace UICatalog {
}
}
private static void CategoryListView_SelectedChanged ()
private static void CategoryListView_SelectedChanged (object sender, ListViewItemEventArgs e)
{
var item = _categories [_categoryListView.SelectedItem];
List<Type> newlist;