using Common.Models; using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; 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 MegaRobo.C00225155App.MenuViews { /// /// 液体原液瓶属性编辑窗口 /// public partial class EditLiquidBottlePropertiesWindow : Window,INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; protected void OnPropertyChanged(string propertyName) { PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); } private SourceLiquidBottleModel _liquidBottle; public SourceLiquidBottleModel LiquidBottle { get=>_liquidBottle; set { if (_liquidBottle != value) { _liquidBottle = value; OnPropertyChanged(nameof(LiquidBottle)); } } } public EditLiquidBottlePropertiesWindow() { InitializeComponent(); DataContext = this; } private void SaveButton_Click(object sender, RoutedEventArgs e) { DialogResult = true; Close(); } } }