C00225155-02/C00225155/MegaRobo.C00225155/MegaRobo.C00225155App/MenuViews/Bottles/EditLiquidBottlePropertiesW...

57 lines
1.5 KiB
C#

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
{
/// <summary>
/// 液体原液瓶属性编辑窗口
/// </summary>
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();
}
}
}