26 lines
565 B
C#
26 lines
565 B
C#
using Stylet;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MainShell.Recipe.Services
|
|
{
|
|
public interface IActiveRecipeService<T> : INotifyPropertyChanged
|
|
{
|
|
T Active { get; set; }
|
|
}
|
|
|
|
public class ActiveRecipeService<T> : PropertyChangedBase, IActiveRecipeService<T>
|
|
{
|
|
private T _active;
|
|
public T Active
|
|
{
|
|
get => _active;
|
|
set => SetAndNotify(ref _active, value);
|
|
}
|
|
}
|
|
}
|