Implement USB device info in GUI.

This commit is contained in:
2018-09-06 21:23:52 +01:00
parent 4656106e2a
commit d579d0adca
2 changed files with 90 additions and 21 deletions

View File

@@ -76,16 +76,50 @@
<TextBox ID="txtScsiType" ReadOnly="True"/>
</StackLayout>
</StackLayoutItem>
<StackLayoutItem HorizontalAlignment="Stretch">
<CheckBox ID="chkRemovable" Text="Removable media" Enabled="False"/>
</StackLayoutItem>
<StackLayoutItem HorizontalAlignment="Stretch">
<CheckBox ID="chkUsb" Text="Connected by USB" Enabled="False"/>
</StackLayoutItem>
</StackLayout>
</TabPage>
<TabPage ID="tabUsb" Text="USB" Visible="False">
<StackLayout Orientation="Vertical">
<StackLayoutItem HorizontalAlignment="Stretch">
<StackLayout Orientation="Horizontal">
<CheckBox ID="chkRemovable" Text="Removable media" Enabled="False"/>
<Label ID="lblUsbVendorId" Text="Device type"/>
<TextBox ID="txtUsbVendorId" ReadOnly="True"/>
</StackLayout>
</StackLayoutItem>
<StackLayoutItem HorizontalAlignment="Stretch">
<StackLayout Orientation="Horizontal">
<CheckBox ID="chkUsb" Text="Connected by USB" Enabled="False"/>
<Label ID="lblUsbProductId" Text="Device type"/>
<TextBox ID="txtUsbProductId" ReadOnly="True"/>
</StackLayout>
</StackLayoutItem>
<StackLayoutItem HorizontalAlignment="Stretch">
<StackLayout Orientation="Horizontal">
<Label ID="lblUsbManufacturer" Text="Device type"/>
<TextBox ID="txtUsbManufacturer" ReadOnly="True"/>
</StackLayout>
</StackLayoutItem>
<StackLayoutItem HorizontalAlignment="Stretch">
<StackLayout Orientation="Horizontal">
<Label ID="lblUsbProduct" Text="Device type"/>
<TextBox ID="txtUsbProduct" ReadOnly="True"/>
</StackLayout>
</StackLayoutItem>
<StackLayoutItem HorizontalAlignment="Stretch">
<StackLayout Orientation="Horizontal">
<Label ID="lblUsbSerial" Text="Device type"/>
<TextBox ID="txtUsbSerial" ReadOnly="True"/>
</StackLayout>
</StackLayoutItem>
<StackLayoutItem HorizontalAlignment="Right">
<Button Text="Save descriptors to file" Click="OnBtnSaveUsbDescriptors"
ID="btnSaveUsbDescriptors"/>
</StackLayoutItem>
</StackLayout>
</TabPage>
<TabPage ID="tabAta" Text="ATA/ATAPI" Visible="False">