using SHJX.Service.Control.Common.Assets; using System.Windows.Controls; using shjxCamera; namespace SHJX.Service.Shell.Views.Manual { /// /// Interaction logic for TitrationManualWindow.xaml /// 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(); // } // } // } // })); //} } }