123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Globalization;
- 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 CyberX8_Themes.UserControls
- {
- /// <summary>
- /// WaferHolderBuffer.xaml 的交互逻辑
- /// </summary>
- public partial class WaferHolderBuffer : UserControl, INotifyPropertyChanged
- {
- public WaferHolderBuffer()
- {
- InitializeComponent();
- }
- private string _cellName;
- public string CellName
- {
- get { return _cellName; }
- set
- {
- _cellName=value;
- InvokePropertyChanged(nameof(CellName));
- }
- }
- private bool _isWHEnable = true;
- public bool IsWHEnable
- {
- get { return _isWHEnable; }
- set
- {
- _isWHEnable = value;
- InvokePropertyChanged(nameof(IsWHEnable));
- }
- }
- private bool _waferHolderVisible = false;
- public bool WaferHolderVisible
- {
- get { return _waferHolderVisible; }
- set
- {
- _waferHolderVisible = value;
- InvokePropertyChanged(nameof(WaferHolderVisible));
- }
- }
- public event PropertyChangedEventHandler PropertyChanged;
- private void InvokePropertyChanged(string propertyName)
- {
- if (PropertyChanged != null)
- {
- PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
- }
- }
- }
- internal class ProcessingColorConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- int cellStatus=(int)value;
- return cellStatus==(int)CellStatus.Busy ? new SolidColorBrush(Colors.Lime) :(cellStatus==(int)CellStatus.Idle? new SolidColorBrush(Colors.Transparent):new SolidColorBrush(Colors.DarkGray));
- }
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-
- }
|