123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- using Aitex.Core.Common;
- using Aitex.Core.UI.MVVM;
- using Aitex.Core.Util;
- using Aitex.Sorter.Common;
- using MECF.Framework.Common.Equipment;
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using System.Linq;
- using System.Text;
- using System.Threading;
- 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.Shapes;
- namespace Aitex.Sorter.UI.Controls
- {
- /// <summary>
- /// TransferSelectionDialog.xaml 的交互逻辑
- /// </summary>
- public partial class TransferSelectionDialog : Window
- {
- public TransferSelectionViewModel TransferSelectionViewModel { get; set; }
-
- public ModuleName OriginalStation { get; set; }
- public ModuleName DestinationStation { get; set; }
- public string OriginalName { get; set; }
- public string DestinationName { get; set; }
- private WaferInfo[] originalWaferInfos;
- public WaferInfo[] OriginalWaferInfos { get
- { return originalWaferInfos; }
- set
- {
- originalWaferInfos = value;
- }
- }
- private int foupCount = 8;
- public int FoupCount { get
- {
- return foupCount;
- } set
- {
- foupCount = value;
- TransferSelectionViewModel.SetFoupCount(value);
- } }
- public WaferInfo[] DestinationWaferInfos { get; set; }
- public TransferSelectionDialog()
- {
- TransferSelectionViewModel = new TransferSelectionViewModel();
- TransferSelectionViewModel.EnableTimer(true);
- Thread.Sleep(1000);
- InitializeComponent();
- DataContext = TransferSelectionViewModel;
- OriginalFoupItem.Slots = TransferSelectionViewModel.FoupAWaferInfo;
- OriginalFoupItem.ShowSlotsIndex = Visibility.Visible;
- DestinationFoupItem.Slots = TransferSelectionViewModel.FoupBWaferInfo;
- DestinationFoupItem.ShowSlotsIndex = Visibility.Visible;
- TransferSelectionViewModel.MyTransferSelectionDialog = this;
- }
- private void Window_Closed(object sender, EventArgs e)
- {
- OriginalFoupItem.ShowSlotsIndex = Visibility.Collapsed;
- DestinationFoupItem.ShowSlotsIndex = Visibility.Collapsed;
- }
- }
- }
|