forked from amkovkov/GranuSightSoftware2
1) GSS2.Core: - strip prefixes in GSS2.Core.Analysis.AmineContent namespace class names - add IEnumerable<double>.Variance extension - remake analysis + update database so not needed to store all every file, calibration data also stored in database, also currently capturing images stored in system temporary directory and rewriting every time 2) GSS.UI.Core: AsyncImageRecordViewModel make zoom and pans public 3) GSS: - remove image-storage-clear command - remove ResultsView and ResultsViewModel, results presented in analysis - rework calibration views - add analysis views - add text and number fields editors view - add confirmation view on danger buttons
39 lines
904 B
C#
39 lines
904 B
C#
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using CommunityToolkit.Mvvm.Input;
|
|
|
|
using GSS2.UI.Core.Services;
|
|
using GSS2.UI.Core.ViewModels;
|
|
|
|
namespace GSS2.ViewModels;
|
|
|
|
public partial class DeleteConfirmViewModel : ViewModelBase
|
|
{
|
|
public event EventHandler<bool>? Closes;
|
|
|
|
private readonly NavigationService _navigation;
|
|
|
|
[ObservableProperty] public partial string Question { get; set; } = "";
|
|
[ObservableProperty] public partial bool Result { get; set; } = false;
|
|
|
|
public DeleteConfirmViewModel(NavigationService navigation)
|
|
{
|
|
_navigation = navigation;
|
|
}
|
|
|
|
[RelayCommand]
|
|
private void Delete()
|
|
{
|
|
Result = true;
|
|
Closes?.Invoke(this, Result);
|
|
_navigation.NavigateBack();
|
|
}
|
|
|
|
[RelayCommand]
|
|
private void Close()
|
|
{
|
|
Result = false;
|
|
Closes?.Invoke(this, Result);
|
|
_navigation.NavigateBack();
|
|
}
|
|
}
|