星火微课系统客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UCCamera.xaml.cs 781B

4 年之前
4 年之前
123456789101112131415161718192021222324252627282930313233
  1. using Common.system;
  2. using System.Windows;
  3. namespace XHWK.WKTool
  4. {
  5. /// <summary>
  6. /// UCCamera.xaml 的交互逻辑
  7. /// </summary>
  8. public partial class UCCamera : Window
  9. {
  10. public UCCamera()
  11. {
  12. InitializeComponent();
  13. }
  14. private void btnOpenCamera_Click(object sender, RoutedEventArgs e)
  15. {
  16. CameraHelper.IsDisplay = true;
  17. CameraHelper.SourcePlayer = player;
  18. CameraHelper.UpdateCameraDevices();
  19. if (CameraHelper.CameraDevices.Count > 0)
  20. {
  21. CameraHelper.SetCameraDevice(0);
  22. }
  23. }
  24. private void btnDown_Click(object sender, RoutedEventArgs e)
  25. {
  26. CameraHelper.CloseDevice();
  27. }
  28. }
  29. }