EFEMFrontView.xaml.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows;
  7. using System.Windows.Controls;
  8. using System.Windows.Data;
  9. using System.Windows.Documents;
  10. using System.Windows.Input;
  11. using System.Windows.Media;
  12. using System.Windows.Media.Imaging;
  13. using System.Windows.Navigation;
  14. using System.Windows.Shapes;
  15. using OpenSEMI.ClientBase;
  16. using OpenSEMI.Ctrlib.Controls;
  17. using Venus_Core;
  18. namespace Venus_Themes.UserControls
  19. {
  20. /// <summary>
  21. /// EFEMFrontView.xaml 的交互逻辑
  22. /// </summary>
  23. public partial class EFEMFrontView : UserControl
  24. {
  25. public EFEMFrontView()
  26. {
  27. InitializeComponent();
  28. }
  29. #region UnitData (DependencyProperty)
  30. public ModuleInfo UnitData
  31. {
  32. get { return (ModuleInfo)GetValue(UnitDataProperty); }
  33. set { SetValue(UnitDataProperty, value); }
  34. }
  35. public static readonly DependencyProperty UnitDataProperty =
  36. DependencyProperty.Register("UnitData", typeof(ModuleInfo), typeof(EFEMFrontView), new UIPropertyMetadata(null));
  37. public bool ShowTitle
  38. {
  39. get { return (bool)GetValue(ShowTitleProperty); }
  40. set { SetValue(ShowTitleProperty, value); }
  41. }
  42. public static readonly DependencyProperty ShowTitleProperty =
  43. DependencyProperty.Register("ShowTitle", typeof(bool), typeof(EFEMFrontView), new UIPropertyMetadata(true));
  44. public string Title
  45. {
  46. get { return (string)GetValue(TitleProperty); }
  47. set { SetValue(TitleProperty, value); }
  48. }
  49. public static readonly DependencyProperty TitleProperty =
  50. DependencyProperty.Register("Title", typeof(string), typeof(EFEMFrontView));
  51. private void Slot_SlotMouseButtonDown(object sender, MouseButtonEventArgs e)
  52. {
  53. VenusGlobalEvents.OnSlotRightClickChanged(sender as Slot);
  54. }
  55. #endregion
  56. }
  57. }