26 lines
642 B
C#
26 lines
642 B
C#
using UVC.UI.Commands;
|
|
using UVC.UI.Tab;
|
|
|
|
namespace EnglewoodLAB.Command
|
|
{
|
|
public class ActivateTabCommand : ICommand
|
|
{
|
|
private readonly TabController? _tabController;
|
|
private readonly string _tabID;
|
|
|
|
public ActivateTabCommand(TabController? tabController, string tabID)
|
|
{
|
|
_tabController = tabController;
|
|
_tabID = tabID;
|
|
}
|
|
|
|
public void Execute(object? parameter = null)
|
|
{
|
|
if (_tabController != null && !string.IsNullOrEmpty(_tabID))
|
|
{
|
|
_tabController.ActivateTab(_tabID, parameter);
|
|
}
|
|
}
|
|
}
|
|
}
|