19 lines
448 B
C#

using System;
using System.Windows.Input;
using RGBController2.Commands;
namespace RGBController2.ViewModels.Tabs
{
public abstract class Tab : ITab
{
public Tab()
{
CloseCommand = new ActionCommand(p => CloseRequested?.Invoke(this, EventArgs.Empty));
}
public string Name { get; set; }
public ICommand CloseCommand { get; }
public event EventHandler CloseRequested;
}
}