终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MaterialConfigure.xaml.cs 1.5 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using BPASmartClient.Helper;
  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.Shapes;
  15. namespace BPASmart.RecipeManagement.View
  16. {
  17. /// <summary>
  18. /// MaterialConfigure.xaml 的交互逻辑
  19. /// </summary>
  20. public partial class MaterialConfigure : Window
  21. {
  22. bool isExpend = false;
  23. public MaterialConfigure()
  24. {
  25. InitializeComponent();
  26. ActionManage.GetInstance.CancelRegister("CloseMaterialConfigureView");
  27. ActionManage.GetInstance.Register(new Action(() => { this.Close(); }), "CloseMaterialConfigureView");
  28. }
  29. private void Button_Click(object sender, RoutedEventArgs e)
  30. {
  31. this.Close();
  32. }
  33. private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
  34. {
  35. this.DragMove();
  36. }
  37. private void expand_Click(object sender, RoutedEventArgs e)
  38. {
  39. if(isExpend)
  40. {
  41. this.Width = 500;
  42. isExpend = false;
  43. }
  44. else
  45. {
  46. this.Width = 900;
  47. isExpend = true;
  48. }
  49. }
  50. }
  51. }