using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace FurnaceUI.Views.Operations { /// /// WaferModifyView.xaml 的交互逻辑 /// public partial class StockerModifyView : UserControl { public StockerModifyView() { InitializeComponent(); } private void Slot_TextChanged(object sender, TextChangedEventArgs e) { TextBox tb = sender as TextBox; if (string.IsNullOrEmpty(tb.Text)) { tb.BorderBrush = Brushes.Red; return; } if (Convert.ToInt32(tb.Text) > 26 || Convert.ToInt32(tb.Text) < 1) tb.BorderBrush = Brushes.Red; else tb.BorderBrush = new System.Windows.Media.SolidColorBrush(System.Windows.Media.Color.FromArgb(0xFF, 0x1B, 0x1B, 0x1B)); } } }