| | |
| | | using System.Timers; |
| | | using System.Windows; |
| | | using System.Windows.Controls; |
| | | using System.Windows.Media; |
| | | |
| | | namespace Plugin.TsExecution |
| | | { |
| | |
| | | |
| | | protected void Set([CallerMemberName] string name = null) |
| | | { |
| | | |
| | | PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name)); |
| | | } |
| | | |
| | |
| | | |
| | | private System.Timers.Timer refreshTimer; |
| | | |
| | | private string currentStep = "等待扫码"; |
| | | private string currentStep = ""; |
| | | public string CurrentStep |
| | | { |
| | | get => currentStep; |
| | |
| | | |
| | | public SingleControl(int Index, string CountIniPath, int probeWarn) |
| | | { |
| | | this.CountIniPath = CountIniPath; |
| | | DataContext = this; |
| | | this.CountIniPath = CountIniPath; |
| | | this.index = Index; |
| | | ProbeWarn = probeWarn; |
| | | |
| | |
| | | //var modal = scannerVisualModal; |
| | | //Canvas.SetLeft(modal, (scannerPanel.ActualWidth - scannerVisualModal.ActualWidth) / 2); |
| | | //Canvas.SetTop(modal, (scannerPanel.ActualHeight - scannerVisualModal.ActualHeight) / 2); |
| | | } |
| | | } |
| | | |
| | | private void TextBlock_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e) |
| | | { |
| | | DependencyObject parent = VisualTreeHelper.GetParent((DependencyObject)sender); |
| | | while (parent != null) { |
| | | parent = VisualTreeHelper.GetParent(parent); |
| | | } |
| | | } |
| | | } |