FOUPFrontView.xaml.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. 
  2. using System.Windows;
  3. using System.Windows.Controls;
  4. using System.Windows.Input;
  5. using OpenSEMI.ClientBase;
  6. using OpenSEMI.Ctrlib.Controls;
  7. using Venus_Core;
  8. namespace Venus_Themes.UserControls
  9. {
  10. /// <summary>
  11. /// FOUPFrontView.xaml 的交互逻辑
  12. /// </summary>
  13. public partial class FOUPFrontView : UserControl
  14. {
  15. public FOUPFrontView()
  16. {
  17. InitializeComponent();
  18. }
  19. #region UnitData (DependencyProperty)
  20. public ModuleInfo UnitData
  21. {
  22. get { return (ModuleInfo)GetValue(UnitDataProperty); }
  23. set { SetValue(UnitDataProperty, value); }
  24. }
  25. public static readonly DependencyProperty UnitDataProperty =
  26. DependencyProperty.Register("UnitData", typeof(ModuleInfo), typeof(FOUPFrontView), new UIPropertyMetadata(null));
  27. public bool ShowTitle
  28. {
  29. get { return (bool)GetValue(ShowTitleProperty); }
  30. set { SetValue(ShowTitleProperty, value); }
  31. }
  32. public static readonly DependencyProperty ShowTitleProperty =
  33. DependencyProperty.Register("ShowTitle", typeof(bool), typeof(FOUPFrontView), new UIPropertyMetadata(true));
  34. #endregion
  35. private void Slot_SlotMouseButtonDown(object sender, MouseButtonEventArgs e)
  36. {
  37. VenusGlobalEvents.OnSlotRightClickChanged(sender as Slot);
  38. }
  39. }
  40. }