WaferCtrl.xaml.cs 1.6 KB

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