Fixed sample error.

This commit is contained in:
Eugene Wang 2015-08-26 21:02:23 -04:00
parent c1c61c471b
commit f66f48b4e3

View File

@ -326,7 +326,7 @@ namespace Sample.Winform
private void LoadPaperSize(ICapWrapper<SupportedSize> cap)
{
var list = cap.GetValues();
var list = cap.GetValues().ToList();
comboSize.DataSource = list;
var cur = cap.GetCurrent();
if (list.Contains(cur))
@ -361,7 +361,7 @@ namespace Sample.Winform
private void LoadDepth(ICapWrapper<PixelType> cap)
{
var list = cap.GetValues();
var list = cap.GetValues().ToList();
comboDepth.DataSource = list;
var cur = cap.GetCurrent();
if (list.Contains(cur))