终端一体化运控平台
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

61 行
1.5 KiB

  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. }