Main new/choose report VM impls ICanCheckShutdown
This commit is contained in:
@@ -9,10 +9,11 @@ using MayShow.Models;
|
||||
using MayShow.Helpers;
|
||||
using MayShows.Helpers;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MayShow.ViewModels;
|
||||
|
||||
class StartNewChooseReportViewModel : BaseViewModel
|
||||
class StartNewChooseReportViewModel : BaseViewModel, ICanCheckShutdown
|
||||
{
|
||||
private string _creatingReportTitle;
|
||||
private ObservableCollection<PDFReportInfo> _savedReports;
|
||||
@@ -109,4 +110,9 @@ class StartNewChooseReportViewModel : BaseViewModel
|
||||
await _settings.SaveSettingsAsync(); // update saved items list
|
||||
}
|
||||
}
|
||||
|
||||
public async Task<bool> CheckIsSafeToShutdown()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user