WaferCtrl.xaml.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. 
  2. using OpenSEMI.ClientBase;
  3. using OpenSEMI.Ctrlib.Controls;
  4. using System;
  5. using System.Collections.Generic;
  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 Venus_Core;
  19. namespace Venus_Themes.UserControls
  20. {
  21. /// <summary>
  22. /// WaferCtrl.xaml 的交互逻辑
  23. /// </summary>
  24. public partial class WaferCtrl : UserControl
  25. {
  26. public WaferCtrl()
  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(WaferCtrl), new PropertyMetadata(null));
  37. private void Slot_SlotMouseButtonDown(object sender, MouseButtonEventArgs e)
  38. {
  39. VenusGlobalEvents.OnSlotRightClickChanged(sender as Slot);
  40. }
  41. }
  42. }