Fixed some warnings.

This commit is contained in:
Eugene Wang
2023-04-07 22:20:42 -04:00
parent 6fff04fc65
commit 54c7fc1d50
4 changed files with 12 additions and 6 deletions

View File

@@ -181,10 +181,11 @@ namespace WinFormSample
// there may be a better way...
private string ReadTypedValue(CAP cap, TWTY type, bool forCurrent)
{
STS sts = default;
switch (type)
{
case TWTY.UINT8:
var sts = forCurrent ?
sts = forCurrent ?
twain.GetCapCurrent(cap, out byte ubval) :
twain.GetCapDefault(cap, out ubval);
return ubval.ToString();
@@ -251,6 +252,7 @@ namespace WinFormSample
case TWTY.HANDLE:
break;
}
Debug.WriteLine($"{nameof(ReadTypedValue)}({cap}, {type}, {forCurrent}) => {sts}");
return "";
}