| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 | 
							- using MECF.Framework.Common.DataCenter;
 
- 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>
 
-     /// BoatModifyView.xaml 的交互逻辑
 
-     /// </summary>
 
-     public partial class BoatModifyView : UserControl
 
-     {
 
-         public BoatModifyView()
 
-         {
 
-             InitializeComponent();
 
-         }
 
-         private void Slot_TextChanged(object sender, TextChangedEventArgs e)
 
-         {
 
-             var count = (int)QueryDataClient.Instance.Service.GetConfig("Boat.SlotCount");
 
-             TextBox tb = sender as TextBox;
 
-             if (string.IsNullOrEmpty(tb.Text))
 
-             {
 
-                 tb.BorderBrush = Brushes.Red;
 
-                 return;
 
-             }
 
-             if (Convert.ToInt32(tb.Text) > count+1 || 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));
 
-         }
 
-     }
 
- }
 
 
  |