WaferTransferDialog.xaml.cs 779 B

12345678910111213141516171819202122232425262728293031323334
  1. using Bolt.Toolkit.Wpf.Data;
  2. using System.Windows;
  3. namespace Bolt.Toolkit.Wpf.Windows
  4. {
  5. /// <summary>
  6. /// WaferTransferDialog.xaml 的交互逻辑
  7. /// </summary>
  8. public partial class WaferTransferDialog : Window
  9. {
  10. public WaferTransferDialog(WaferData waferData, string sourceStation, string sourceSlot, string destinationStation, string destinationSlot)
  11. {
  12. InitializeComponent();
  13. lbSource.Content = sourceStation;
  14. lbSourceSlot.Content = sourceSlot;
  15. lbDest.Content = destinationStation;
  16. lblDestSlot.Content = destinationSlot;
  17. }
  18. private void btnOK_Click(object sender, RoutedEventArgs e)
  19. {
  20. DialogResult = true;
  21. Close();
  22. }
  23. private void btnCancel_Click(object sender, RoutedEventArgs e)
  24. {
  25. DialogResult = false;
  26. Close();
  27. }
  28. }
  29. }