mirror of
https://github.com/claunia/romrepomgr.git
synced 2025-12-16 19:24:51 +00:00
Add mock constructors to allow designer to instantiate viewmodels.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user