AddDevice.xaml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <Window x:Class="DeviceCenter.AddDevice"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:DeviceCenter"
  7. mc:Ignorable="d"
  8. Title="添加设备" Height="400" Width="300" ResizeMode="NoResize">
  9. <StackPanel Orientation="Vertical">
  10. <StackPanel Orientation="Horizontal" Margin="0 10 0 0">
  11. <Label Content="所在区域" Width="80" HorizontalContentAlignment="Right" Margin="0 0 10 0"/>
  12. <ComboBox x:Name="cb_area" Width="150">
  13. </ComboBox>
  14. </StackPanel>
  15. <StackPanel Orientation="Horizontal" Margin="0 10 0 0">
  16. <Label Content="所在楼栋" Width="80" HorizontalContentAlignment="Right" Margin="0 0 10 0"/>
  17. <ComboBox x:Name="cb_building" Width="150">
  18. </ComboBox>
  19. </StackPanel>
  20. <StackPanel Orientation="Horizontal" Margin="0 10 0 0">
  21. <Label Content="所在楼层" Width="80" HorizontalContentAlignment="Right" Margin="0 0 10 0"/>
  22. <ComboBox x:Name="cb_floor" Width="150">
  23. </ComboBox>
  24. </StackPanel>
  25. <StackPanel Orientation="Horizontal" Margin="0 10 0 0">
  26. <Label Content="设备类型" Width="80" HorizontalContentAlignment="Right" Margin="0 0 10 0"/>
  27. <ComboBox x:Name="cb_type" Width="150">
  28. <ComboBoxItem Content="车牌识别" Tag="1"></ComboBoxItem>
  29. <ComboBoxItem Content="门禁" Tag="2"></ComboBoxItem>
  30. </ComboBox>
  31. </StackPanel>
  32. <StackPanel Orientation="Horizontal" Margin="0 10 0 0">
  33. <Label Content="设备名称" Width="80" HorizontalContentAlignment="Right" Margin="0 0 10 0"/>
  34. <TextBox Name="tb_name" Width="150" VerticalContentAlignment="Center"></TextBox>
  35. </StackPanel>
  36. <StackPanel Orientation="Horizontal" Margin="0 10 0 0">
  37. <Label Content="IP地址" Width="80" HorizontalContentAlignment="Right" Margin="0 0 10 0"/>
  38. <TextBox Name="tb_ip" Width="150" VerticalContentAlignment="Center"></TextBox>
  39. </StackPanel>
  40. <StackPanel Orientation="Horizontal" Margin="0 10 0 0">
  41. <Label Content="端口" Width="80" HorizontalContentAlignment="Right" Margin="0 0 10 0"/>
  42. <TextBox Name="tb_port" Width="150" VerticalContentAlignment="Center"></TextBox>
  43. </StackPanel>
  44. <StackPanel Orientation="Horizontal" Margin="0 10 0 0">
  45. <Label Content="用户名" Width="80" HorizontalContentAlignment="Right" Margin="0 0 10 0"/>
  46. <TextBox Name="tb_username" Width="150" VerticalContentAlignment="Center"></TextBox>
  47. </StackPanel>
  48. <StackPanel Orientation="Horizontal" Margin="0 10 0 0">
  49. <Label Content="密码" Width="80" HorizontalContentAlignment="Right" Margin="0 0 10 0"/>
  50. <TextBox Name="tb_password" Width="150" VerticalContentAlignment="Center"></TextBox>
  51. </StackPanel>
  52. <Button Content="添加" Width="60" Height="24" Margin="0 10 0 0"></Button>
  53. </StackPanel>
  54. </Window>