PMT1Control.xaml.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using MECF.Framework.UI.Client.ClientBase;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Controls;
  9. using System.Windows.Data;
  10. using System.Windows.Documents;
  11. using System.Windows.Input;
  12. using System.Windows.Media;
  13. using System.Windows.Media.Imaging;
  14. using System.Windows.Navigation;
  15. using System.Windows.Shapes;
  16. using System.Windows.Threading;
  17. using Aitex.Core.Util;
  18. using MECF.Framework.UI.Client.ClientControls.EfemControls;
  19. namespace MECF.Framework.UI.Client.ClientControls.PMControls
  20. {
  21. /// <summary>
  22. /// PMT1Control.xaml 的交互逻辑
  23. /// </summary>
  24. public partial class PMT1Control : UserControl
  25. {
  26. public WaferInfo WaferData
  27. {
  28. get { return (WaferInfo)GetValue(WaferDataProperty); }
  29. set { SetValue(WaferDataProperty, value); }
  30. }
  31. // Using a DependencyProperty as the backing store for MyProperty. This enables animation, styling, binding, etc...
  32. public static readonly DependencyProperty WaferDataProperty =
  33. DependencyProperty.Register("WaferData", typeof(WaferInfo), typeof(PMT1Control), new PropertyMetadata(WaferDataChanged));
  34. public static void WaferDataChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
  35. {
  36. if (!(obj is PMT1Control))
  37. return;
  38. PMT1Control ctrl = (PMT1Control)obj;
  39. var waferCtrl = ctrl.waferCtrl;
  40. if (waferCtrl.WaferData != (WaferInfo)e.NewValue)
  41. waferCtrl.WaferData = (WaferInfo)e.NewValue;
  42. }
  43. public PMT1Control()
  44. {
  45. InitializeComponent();
  46. }
  47. }
  48. }