| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 | 
							- 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
 
- {
 
-     /// <summary>
 
-     /// RecipeNameDialog.xaml 的交互逻辑
 
-     /// </summary>
 
-     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();
 
-         }
 
-     }
 
- }
 
 
  |