| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 | 
							- namespace RecipeModule.ViewModels;
 
- public partial class GeneralRecipeVM(IDialogService dialogService) : ObservableObject, IActiveAware
 
- {
 
-     protected IDialogService dialogService = dialogService;
 
-     event EventHandler IActiveAware.IsActiveChanged { add { } remove { } }
 
-     private bool _IsActive;
 
-     public bool IsActive
 
-     {
 
-         get { return _IsActive; }
 
-         set
 
-         {
 
-             _IsActive = value;
 
-             if (value)
 
-                 this.OnActive();
 
-         }
 
-     }
 
-     protected virtual void OnActive()
 
-     {
 
-     }
 
-     [ObservableProperty]
 
-     private ObservableCollection<RecipeDirectory>? _Directories;
 
-     [ObservableProperty]
 
-     private RecipeDirectory? _SelectedRecipeDirectory;
 
-     [ObservableProperty]
 
-     private ObservableCollection<RecipeInfo>? _Recipes;
 
-     [ObservableProperty]
 
-     private RecipeInfo? _SelectedRecipeInfo;
 
-     [ObservableProperty]
 
-     private string? _Title;
 
-     [RelayCommand]
 
-     private void DirOperate()
 
-     {
 
-     }
 
-     [RelayCommand]
 
-     private void RecipeOperate(RecipeOpreateEnum recipeOpreateEnum)
 
-     {
 
-         Commands(recipeOpreateEnum);
 
-     }
 
-     protected virtual void Commands(RecipeOpreateEnum recipeOpreateEnum)
 
-     {
 
-         switch (recipeOpreateEnum)
 
-         {
 
-             case RecipeOpreateEnum.New:
 
-                 break;
 
-             case RecipeOpreateEnum.Delete:
 
-                 break;
 
-             case RecipeOpreateEnum.Edit:
 
-                 dialogService.Show("RecipeEdit");
 
-                 break;
 
-             case RecipeOpreateEnum.Rename:
 
-                 break;
 
-             case RecipeOpreateEnum.Copy:
 
-                 break;
 
-             case RecipeOpreateEnum.View:
 
-                 break;
 
-             case RecipeOpreateEnum.Export:
 
-                 break;
 
-             case RecipeOpreateEnum.Change:
 
-                 break;
 
-             case RecipeOpreateEnum.History:
 
-                 break;
 
-             default:
 
-                 break;
 
-         }
 
-     }
 
- }
 
- public enum RecipeOpreateEnum
 
- {
 
-     New,
 
-     Delete,
 
-     Edit,
 
-     Rename,
 
-     Copy,
 
-     View,
 
-     Export,
 
-     Change,
 
-     History
 
- }
 
 
  |