| 123456789101112131415161718192021222324252627282930313233343536 |
- using MaintainModule.ViewModels;
- using System.Collections.ObjectModel;
- using System.Windows.Media;
- namespace MaintainModule.Pops;
- internal partial class AxisBoolViewModel : ObservableObject, IPopAware
- {
- public ImageSource? ImageSource { get; set; }
- public Action? RequestClose { get; set; }
- public string? Title { get; set; }
- [ObservableProperty]
- private AxisSetting<int>? _DataSource;
- public bool CanClose()
- {
- return true;
- }
- public void OnClose()
- {
- }
- public void OnPop(object? state)
- {
- if (state is not AxisSetting<int> settings)
- return;
- this.DataSource = settings;
- this.Title = settings.Title;
- }
- }
|