30 lines
784 B
C#
30 lines
784 B
C#
using System.Collections.ObjectModel;
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using CommunityToolkit.Mvvm.Input;
|
|
using VisionBuilder.UI.Common.Commands;
|
|
using VisionBuilder.UI.Common.Commands.Interfaces;
|
|
using VisionBuilder.UI.Common.ViewModel.Interfaces.UI;
|
|
|
|
namespace VisionBuilder.UI.Common.ViewModel;
|
|
|
|
public partial class MainWindowVM:ObservableObject
|
|
{
|
|
private readonly ISettingsService _settingsService;
|
|
|
|
|
|
public MainWindowVM(ISettingsService settingsService)
|
|
{
|
|
_settingsService = settingsService;
|
|
}
|
|
|
|
public ObservableCollection<SingleCameraVM> SingleCameraVms { get; set; } =
|
|
new ObservableCollection<SingleCameraVM>();
|
|
|
|
|
|
[RelayCommand]
|
|
public void Settings()
|
|
{
|
|
_settingsService.ShowSettingsDialog();
|
|
}
|
|
|
|
} |