Add mock constructors to allow designer to instantiate viewmodels.

This commit is contained in:
2025-07-09 14:07:26 +01:00
parent 5586cc19c4
commit 3b576b0b0e
10 changed files with 89 additions and 4 deletions

View File

@@ -64,6 +64,14 @@ public sealed class ImportDatFolderViewModel : ViewModelBase
string _status2Message;
string _statusMessage;
// Mock
public ImportDatFolderViewModel()
{
#pragma warning disable PH2080
FolderPath = "C:\\ROMs";
#pragma warning restore PH2080
}
public ImportDatFolderViewModel(ImportDatFolder view, string folderPath)
{
_view = view;