Titration2ManualWindow.xaml.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using SHJX.Service.Control.Common.Assets;
  2. using System.Windows.Controls;
  3. using shjxCamera;
  4. namespace SHJX.Service.Shell.Views.Manual
  5. {
  6. /// <summary>
  7. /// Interaction logic for TitrationManualWindow.xaml
  8. /// </summary>
  9. public partial class Titration2ManualWindow : UserControl
  10. {
  11. public Titration2ManualWindow()
  12. {
  13. InitializeComponent();
  14. if (Globals.Camera2 is not null)
  15. {
  16. Globals.Camera2.ShowControl(ref pnlSignal, 0, 0, pnlSignal.Width, pnlSignal.Height);
  17. if (!Globals.Camera2.IsOpened)
  18. {
  19. Globals.Camera2.OpenCamera();
  20. }
  21. }
  22. }
  23. private void ManualTitrationCommandButton_Click(object sender, System.Windows.RoutedEventArgs e)
  24. {
  25. ManualTitrationCommandButton.IsEnabled = false;
  26. ManualTitrationCommandButtonStop.IsEnabled = true;
  27. }
  28. private void Button_Click(object sender, System.Windows.RoutedEventArgs e)
  29. {
  30. ManualTitrationCommandButton.IsEnabled = true;
  31. ManualTitrationCommandButtonStop.IsEnabled = false;
  32. }
  33. }
  34. }