Move models to core.

This commit is contained in:
2020-08-22 13:36:39 +01:00
parent ad4bbdc417
commit 94e7c9af84
8 changed files with 47 additions and 16 deletions

View File

@@ -33,7 +33,7 @@ using System.Threading.Tasks;
using JetBrains.Annotations;
using Microsoft.DotNet.PlatformAbstractions;
using ReactiveUI;
using RomRepoMgr.Models;
using RomRepoMgr.Core.Models;
using RomRepoMgr.Views;
namespace RomRepoMgr.ViewModels

View File

@@ -30,7 +30,7 @@ using Avalonia;
using Avalonia.Controls;
using Avalonia.Controls.ApplicationLifetimes;
using ReactiveUI;
using RomRepoMgr.Models;
using RomRepoMgr.Core.Models;
using RomRepoMgr.Views;
namespace RomRepoMgr.ViewModels
@@ -116,8 +116,9 @@ namespace RomRepoMgr.ViewModels
if(result?.Length != 1)
return;
var dialog = new ImportDat();
dialog.DataContext = new ImportDatViewModel(dialog, result[0]);
var dialog = new ImportDat();
var importDatViewModel = new ImportDatViewModel(dialog, result[0]);
dialog.DataContext = importDatViewModel;
await dialog.ShowDialog(_view);
}
}

View File

@@ -24,7 +24,6 @@
*******************************************************************************/
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reactive;
@@ -34,8 +33,9 @@ using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Threading;
using Microsoft.EntityFrameworkCore;
using ReactiveUI;
using RomRepoMgr.Core.EventArgs;
using RomRepoMgr.Core.Models;
using RomRepoMgr.Database;
using RomRepoMgr.Models;
namespace RomRepoMgr.ViewModels
{
@@ -352,10 +352,5 @@ namespace RomRepoMgr.ViewModels
internal event EventHandler WorkFinished;
internal event EventHandler<RomSetEventArgs> GotRomSets;
public sealed class RomSetEventArgs : EventArgs
{
public List<RomSetModel> RomSets { get; set; }
}
}
}