| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- using SHJX.Service.Control.Common.Assets;
- using System.Windows.Controls;
- using shjxCamera;
- namespace SHJX.Service.Shell.Views.Manual
- {
- /// <summary>
- /// Interaction logic for TitrationManualWindow.xaml
- /// </summary>
- public partial class TitrationManualWindow : UserControl
- {
- public TitrationManualWindow()
- {
- InitializeComponent();
- if (Globals.Camera is not null)
- {
- Globals.Camera.ShowControl(ref pnlSignal, 0, 0, pnlSignal.Width, pnlSignal.Height);
- if (!Globals.Camera.IsOpened)
- {
- Globals.Camera.OpenCamera();
- }
- }
- }
- private void Button_Click(object sender, System.Windows.RoutedEventArgs e)
- {
- Button_Click_Stop.IsEnabled = false;
- Button_Click_Begin.IsEnabled = true;
- }
- private void Button_Click_1(object sender, System.Windows.RoutedEventArgs e)
- {
- Button_Click_Stop.IsEnabled = true;
- Button_Click_Begin.IsEnabled = false;
- }
- private void Button_Click_2(object sender, System.Windows.RoutedEventArgs e)
- {
- }
- //private void SelectionChanged(object sender, SelectionChangedEventArgs e)
- //{
- // Dispatcher.BeginInvoke(new System.Action(() =>
- // {
- // string s = TabConcentration.SelectedValue?.ToString();
- // if (s.Contains("滴定2"))
- // {
- // if (Globals.Camera2 is not null)
- // {
- // Globals.Camera2.ShowControl(ref pnlSignal, 0, 0, pnlSignal.Width, pnlSignal.Height);
- // if (!Globals.Camera2.IsOpened)
- // {
- // Globals.Camera2.OpenCamera();
- // }
- // }
- // }
- // if (s.Contains("滴定1"))
- // {
- // if (Globals.Camera is not null)
- // {
- // Globals.Camera.ShowControl(ref pnlSignal, 0, 0, pnlSignal.Width, pnlSignal.Height);
- // if (!Globals.Camera.IsOpened)
- // {
- // Globals.Camera.OpenCamera();
- // }
- // }
- // }
- // }));
- //}
- }
- }
|