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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user