Added cap search in wpf sample.

This commit is contained in:
soukoku
2014-11-14 23:09:12 -05:00
parent c35e727cdb
commit 6370d9c38b
4 changed files with 74 additions and 22 deletions

View File

@@ -99,17 +99,7 @@ namespace Tester.WPF
var dsId = SrcList.SelectedItem as DSVM;
if (dsId != null)
{
var rc = dsId.DS.Open();
//rc = DGControl.Status.Get(dsId, ref stat);
if (rc == ReturnCode.Success)
{
var caps = dsId.DS.SupportedCaps.Select(o => new CapVM(dsId, o)).OrderBy(o => o.Name).ToList();
CapList.ItemsSource = caps;
}
}
else
{
CapList.ItemsSource = null;
dsId.Open();
}
}