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

@@ -58,6 +58,14 @@ public sealed class ExportRomsViewModel : ViewModelBase
string _status3Message;
string _statusMessage;
// Mock
public ExportRomsViewModel()
{
#pragma warning disable PH2080
FolderPath = "C:\\ExportedRoms";
#pragma warning restore PH2080
}
public ExportRomsViewModel(ExportRoms view, string folderPath, long romSetId)
{
_view = view;