mirror of
https://github.com/soukoku/ntwain.git
synced 2025-10-24 01:49:00 +08:00
Playing with more interfaces.
This commit is contained in:
@@ -297,7 +297,7 @@ namespace Tester.Winform
|
||||
_loadingCaps = false;
|
||||
}
|
||||
|
||||
private void LoadPaperSize(CapabilityControl<SupportedSize> cap)
|
||||
private void LoadPaperSize(CapWrapper<SupportedSize> cap)
|
||||
{
|
||||
var list = cap.Get();
|
||||
comboSize.DataSource = list;
|
||||
@@ -314,13 +314,13 @@ namespace Tester.Winform
|
||||
}
|
||||
|
||||
|
||||
private void LoadDuplex(CapabilityControl<BoolType> cap)
|
||||
private void LoadDuplex(CapWrapper<BoolType> cap)
|
||||
{
|
||||
ckDuplex.Checked = cap.GetCurrent() == BoolType.True;
|
||||
}
|
||||
|
||||
|
||||
private void LoadDPI(CapabilityControl<TWFix32> cap)
|
||||
private void LoadDPI(CapWrapper<TWFix32> cap)
|
||||
{
|
||||
// only allow dpi of certain values for those source that lists everything
|
||||
var list = cap.Get().Where(dpi => (dpi % 50) == 0).ToList();
|
||||
@@ -332,7 +332,7 @@ namespace Tester.Winform
|
||||
}
|
||||
}
|
||||
|
||||
private void LoadDepth(CapabilityControl<PixelType> cap)
|
||||
private void LoadDepth(CapWrapper<PixelType> cap)
|
||||
{
|
||||
var list = cap.Get();
|
||||
comboDepth.DataSource = list;
|
||||
|
||||
Reference in New Issue
Block a user