RGBController/RGBController2/ViewModels/Tabs/Tab.cs

34 lines
830 B
C#
Raw Normal View History

2020-10-25 19:52:14 +00:00
using System;
using System.Windows.Input;
using RGBController2.Commands;
namespace RGBController2.ViewModels.Tabs
{
public abstract class Tab : ITab
{
2020-10-27 20:07:26 +00:00
public enum tabType
{
Unknown,
Arduino,
CUE
}
public tabType TabType = tabType.Unknown;
2020-10-25 19:52:14 +00:00
public Tab()
{
CloseCommand = new ActionCommand(p => CloseRequested?.Invoke(this, EventArgs.Empty));
}
2020-10-27 20:07:26 +00:00
private BaseViewModel _selectedLightingMode;
public BaseViewModel SelectedLightingMode
{
get { return _selectedLightingMode; }
set { _selectedLightingMode = value; }
}
2020-10-25 19:52:14 +00:00
public string Name { get; set; }
public ICommand CloseCommand { get; }
public event EventHandler CloseRequested;
}
}