using BBWY.Controls; using System; using System.Collections.Generic; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; namespace BBWY.Client.Views.BillCorrection { /// /// YTBasicAmount.xaml 的交互逻辑 /// public partial class YTBasicAmount : BWindow { public decimal BasicAmount { get; private set; } public YTBasicAmount() { InitializeComponent(); } private void btn_Save_Click(object sender, RoutedEventArgs e) { if (!decimal.TryParse(txtBasicAmount.Text, out decimal amount)) { MessageBox.Show("输入金额格式错误", "提示"); return; } BasicAmount = amount; this.DialogResult = true; this.Close(); } } }