38 lines
988 B
C#
38 lines
988 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MainShell.Recipe.Models
|
|
{
|
|
public class RecipeEventArgs : EventArgs
|
|
{
|
|
public string RecipeName { get; set; }
|
|
public string RecipeDescription { get; set; } = string.Empty;
|
|
public RecipeEventArgs(string recipeName, string recipeDescription = "")
|
|
{
|
|
RecipeName = recipeName;
|
|
RecipeDescription = recipeDescription;
|
|
}
|
|
public RecipeEventArgs()
|
|
{
|
|
}
|
|
}
|
|
|
|
public class RecipeRenameEventArgs : EventArgs
|
|
{
|
|
public string OldRecipeName { get; set; }
|
|
public string NewRecipeName { get; set; }
|
|
public RecipeRenameEventArgs(string oldRecipeName, string newRecipeName)
|
|
{
|
|
OldRecipeName = oldRecipeName;
|
|
NewRecipeName = newRecipeName;
|
|
}
|
|
public RecipeRenameEventArgs()
|
|
{
|
|
}
|
|
}
|
|
|
|
}
|