BOOK-IQ4TD9B9LB\DIT-930
2023-05-15 f5120e92b525474f6b4e50130797946986c28eed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
using SA_LTT.Info.WaferInfo;
using System.Windows.Controls;
using System.Windows.Media;
using static SA_LTT.Info.WaferInfo.WaferInfo;
using static SA_LTT.Info.WaferInfo.WaferInfoManager;
 
namespace SA_LTT_UI.Screen
{
    /// <summary>
    /// Interaction logic for ChamberStatus.xaml
    /// </summary>
    public partial class ChamberStatus : UserControl
    {
        SolidColorBrush _doorOpenColor;
        SolidColorBrush _doorCloseColor;
 
        SolidColorBrush _waferExistColor;
        SolidColorBrush _waferEmptyColor;
        SolidColorBrush _waferProcessCompleteColor;
 
        public ChamberStatus()
        {
            InitializeComponent();
 
            _doorOpenColor = new SolidColorBrush(Colors.Red);
            _doorCloseColor = new SolidColorBrush(Colors.Lime);
 
            _waferExistColor = new SolidColorBrush(Colors.Lime);
            _waferEmptyColor = new SolidColorBrush(Colors.Transparent);
            _waferProcessCompleteColor = new SolidColorBrush(Colors.MediumPurple);
        }
 
        public void SetChamberWaferExist(WaferInfo waferInfo)
        {
            if (waferInfo.IsStatus == WaferStatus.Empty)
            {
                ChamberWafer.Opacity = 0;
            }
            else if (waferInfo.IsStatus == WaferStatus.Exist)
            {
                ChamberWafer.Opacity = 100;
 
                if (waferInfo.IsProcessComplete)
                {
                    ChamberWaferStatus.Fill = _waferProcessCompleteColor;
                }
                else
                {
                    ChamberWaferStatus.Fill = new SolidColorBrush(Colors.Silver);
                }
            }
        }
 
        public void SetChamberGate(bool open)
        {
            ChamberGate.Fill = open ? _doorOpenColor : _doorCloseColor;
        }
 
        public void SetChamberWaferNum(WaferNumbers waferNumber)
        {
            ChamberWaferSourceName.Text = waferNumber.ToString();
        }
    }
}