| 123456789101112131415161718192021222324252627282930313233343536373839404142 | 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{    /// <summary>    /// WaferModifyView.xaml 的交互逻辑    /// </summary>    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));        }    }}
 |