VPWWaferCtrl.xaml.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. using OpenSEMI.Ctrlib.Controls;
  2. using PunkHPX8_Core;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Diagnostics;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows;
  10. using System.Windows.Controls;
  11. using System.Windows.Data;
  12. using System.Windows.Documents;
  13. using System.Windows.Input;
  14. using System.Windows.Media;
  15. using System.Windows.Media.Imaging;
  16. using System.Windows.Navigation;
  17. using System.Windows.Shapes;
  18. using OpenSEMI.ClientBase;
  19. namespace PunkHPX8_Themes.UserControls
  20. {
  21. /// <summary>
  22. /// VPWWaferCtrl.xaml 的交互逻辑
  23. /// </summary>
  24. public partial class VPWWaferCtrl : UserControl
  25. {
  26. public VPWWaferCtrl()
  27. {
  28. InitializeComponent();
  29. }
  30. public WaferInfo WaferData
  31. {
  32. get { return (WaferInfo)GetValue(WaferDataProperty); }
  33. set { SetValue(WaferDataProperty, value); }
  34. }
  35. public static readonly DependencyProperty WaferDataProperty =
  36. DependencyProperty.Register("WaferData", typeof(WaferInfo), typeof(VPWWaferCtrl), new PropertyMetadata(null));
  37. private void Slot_SlotMouseButtonDown(object sender, MouseButtonEventArgs e)
  38. {
  39. GlobalEvents.OnSlotRightClickChanged(sender as Slot);
  40. }
  41. private void OnWaferTransfer(object sender, DragDropEventArgs e)
  42. {
  43. try
  44. {
  45. GlobalEvents.OnSlotWaferTransfer(e);
  46. }
  47. catch (Exception ex)
  48. {
  49. Trace.WriteLine(ex);
  50. }
  51. }
  52. }
  53. }