InterlockTEMPViewModel.cs 907 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using MECF.Framework.UI.Client.ClientBase;
  2. using OpenSEMI.ClientBase;
  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. namespace MECF.Framework.UI.Client.CenterViews.Parameter
  10. {
  11. public class InterlockTEMPViewModel : ModuleUiViewModelBase
  12. {
  13. public string TEMPSelected { get; set; }
  14. public void TEMPSelect(string value)
  15. {
  16. TEMPSelected = value;
  17. }
  18. public void SaveCmd()
  19. {
  20. if (string.IsNullOrEmpty(TEMPSelected))
  21. {
  22. DialogBox.ShowWarning("TEMP is empty!");
  23. return;
  24. }
  25. ((Window)GetView()).DialogResult = true;
  26. }
  27. public void CloseCmd()
  28. {
  29. ((Window)GetView()).DialogResult = false;
  30. }
  31. }
  32. }