MetalWaferSizeControl.xaml.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using MECF.Framework.Common.Equipment;
  2. using MECF.Framework.Common.OperationCenter;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using System.Windows;
  9. using System.Windows.Controls;
  10. using System.Windows.Data;
  11. using System.Windows.Documents;
  12. using System.Windows.Input;
  13. using System.Windows.Media;
  14. using System.Windows.Media.Imaging;
  15. using System.Windows.Navigation;
  16. using System.Windows.Shapes;
  17. namespace CyberX8_Themes.UserControls
  18. {
  19. /// <summary>
  20. /// MetalWaferSizeControl.xaml 的交互逻辑
  21. /// </summary>
  22. public partial class MetalWaferSizeControl : UserControl
  23. {
  24. public MetalWaferSizeControl()
  25. {
  26. InitializeComponent();
  27. }
  28. public static readonly DependencyProperty ModuleNameProperty = DependencyProperty.Register(
  29. "ModuleName", typeof(string), typeof(MetalWaferSizeControl), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));
  30. /// <summary>
  31. /// 模块名称
  32. /// </summary>
  33. public string ModuleName
  34. {
  35. get
  36. {
  37. return (string)this.GetValue(ModuleNameProperty);
  38. }
  39. set
  40. {
  41. this.SetValue(ModuleNameProperty, value);
  42. }
  43. }
  44. public static readonly DependencyProperty MetalWaferSizeProperty = DependencyProperty.Register(
  45. "MetalWaferSize", typeof(string), typeof(MetalWaferSizeControl), new FrameworkPropertyMetadata("200", FrameworkPropertyMetadataOptions.AffectsRender));
  46. /// <summary>
  47. /// MetalWaferSize
  48. /// </summary>
  49. public string MetalWaferSize
  50. {
  51. get
  52. {
  53. return (string)this.GetValue(MetalWaferSizeProperty);
  54. }
  55. set
  56. {
  57. this.SetValue(MetalWaferSizeProperty, value);
  58. }
  59. }
  60. private void WaferSize_SelectionChanged(object sender, SelectionChangedEventArgs e)
  61. {
  62. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.SetMetalWaferSize", cbox.SelectedItem.ToString());
  63. }
  64. }
  65. }