Component List 개발 중
This commit is contained in:
@@ -1,12 +1,18 @@
|
||||
#nullable enable
|
||||
using UVC.UI.Commands;
|
||||
using UVC.UI.Commands.Mono;
|
||||
using UVC.UI.Modal;
|
||||
|
||||
namespace UVC.Factory.Modal.Settings
|
||||
{
|
||||
public class SettingOpenCommand : ICommand
|
||||
{
|
||||
private object? _parameter;
|
||||
|
||||
public SettingOpenCommand(object? parameter = null)
|
||||
{
|
||||
_parameter = parameter;
|
||||
}
|
||||
|
||||
public async void Execute(object? parameter = null)
|
||||
{
|
||||
FactoryCameraController.Instance.Enable = false; // 카메라 컨트롤러 비활성화
|
||||
@@ -14,6 +20,10 @@ namespace UVC.Factory.Modal.Settings
|
||||
{
|
||||
Title = "설정 카테고리"
|
||||
};
|
||||
|
||||
if(parameter != null) modalContent.Message = parameter.ToString();
|
||||
else if(_parameter != null) modalContent.Message = _parameter.ToString();
|
||||
|
||||
await UVC.UI.Modal.Modal.Open<object>(modalContent);
|
||||
FactoryCameraController.Instance.Enable = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user