终端一体化运控平台
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.
 
 
 

53 lines
1.5 KiB

  1. //using BPASmartClient.CustomResource.Pages.Model;
  2. using BPASmartClient.MorkS.Model;
  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.Controls.Primitives;
  11. using System.Windows.Data;
  12. using System.Windows.Documents;
  13. using System.Windows.Input;
  14. using System.Windows.Media;
  15. using System.Windows.Media.Imaging;
  16. using System.Windows.Navigation;
  17. using System.Windows.Shapes;
  18. namespace BPASmartClient.MorkS.View
  19. {
  20. /// <summary>
  21. /// GoodsMakeView.xaml 的交互逻辑
  22. /// </summary>
  23. public partial class GoodsMakeView : UserControl
  24. {
  25. public GoodsMakeView()
  26. {
  27. InitializeComponent();
  28. }
  29. private void togFire_Click(object sender, RoutedEventArgs e)
  30. {
  31. if (sender is ToggleButton btn)
  32. {
  33. if (btn.IsChecked!=null)
  34. {
  35. btn.Content=(bool)btn.IsChecked ? "本地" : "小程序";
  36. if ((bool)btn.IsChecked)
  37. {
  38. btn.HorizontalContentAlignment = HorizontalAlignment.Left;
  39. }
  40. else
  41. {
  42. btn.HorizontalContentAlignment = HorizontalAlignment.Right;
  43. }
  44. Global.LocalOrderModel =(bool)btn.IsChecked;
  45. }
  46. }
  47. }
  48. }
  49. }