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

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