using MECF.Framework.Common.CommonData; 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.Navigation; using System.Windows.Shapes; namespace CyberX8_Themes.UserControls { /// /// RecipeNameDialog.xaml 的交互逻辑 /// public partial class RecipeNameDialog : Window, INotifyPropertyChanged { #region 内部变量 private string _recipeName; private string _recipeDescription; public event PropertyChangedEventHandler PropertyChanged; #endregion #region 属性 public string RecipeName { get { return _recipeName; } set { _recipeName = value; InvokePropertyChanged(nameof(RecipeName)); } } public string RecipeDescription { get { return _recipeDescription; } set { _recipeDescription = value; InvokePropertyChanged(nameof(RecipeDescription)); } } #endregion public RecipeNameDialog() { InitializeComponent(); } private void InvokePropertyChanged(string propertyName) { if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } private void Button_Click(object sender, RoutedEventArgs e) { this.DialogResult = true; this.Close(); } } }