//using BPASmartClient.CustomResource.Pages.Model; using BPASmartClient.MorkS.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace BPASmartClient.MorkS.View { /// /// GoodsMakeView.xaml 的交互逻辑 /// public partial class GoodsMakeView : UserControl { public GoodsMakeView() { InitializeComponent(); } private void togFire_Click(object sender, RoutedEventArgs e) { if (sender is ToggleButton btn) { if (btn.IsChecked!=null) { btn.Content=(bool)btn.IsChecked ? "本地" : "小程序"; if ((bool)btn.IsChecked) { btn.HorizontalContentAlignment = HorizontalAlignment.Left; } else { btn.HorizontalContentAlignment = HorizontalAlignment.Right; } Global.LocalOrderModel =(bool)btn.IsChecked; } } } } }