diff --git a/samples/Sample.Winform/TestForm.cs b/samples/Sample.Winform/TestForm.cs index 963f322..3c8a3ed 100644 --- a/samples/Sample.Winform/TestForm.cs +++ b/samples/Sample.Winform/TestForm.cs @@ -326,7 +326,7 @@ namespace Sample.Winform private void LoadPaperSize(ICapWrapper 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 cap) { - var list = cap.GetValues(); + var list = cap.GetValues().ToList(); comboDepth.DataSource = list; var cur = cap.GetCurrent(); if (list.Contains(cur))