34 lines
830 B
C#
34 lines
830 B
C#
using System;
|
|
using System.Windows.Input;
|
|
using RGBController2.Commands;
|
|
|
|
namespace RGBController2.ViewModels.Tabs
|
|
{
|
|
public abstract class Tab : ITab
|
|
{
|
|
public enum tabType
|
|
{
|
|
Unknown,
|
|
Arduino,
|
|
CUE
|
|
}
|
|
|
|
public tabType TabType = tabType.Unknown;
|
|
|
|
public Tab()
|
|
{
|
|
CloseCommand = new ActionCommand(p => CloseRequested?.Invoke(this, EventArgs.Empty));
|
|
}
|
|
|
|
private BaseViewModel _selectedLightingMode;
|
|
public BaseViewModel SelectedLightingMode
|
|
{
|
|
get { return _selectedLightingMode; }
|
|
set { _selectedLightingMode = value; }
|
|
}
|
|
public string Name { get; set; }
|
|
public ICommand CloseCommand { get; }
|
|
public event EventHandler CloseRequested;
|
|
}
|
|
}
|