Add list of ROM sets to main window.

This commit is contained in:
2020-08-22 03:26:43 +01:00
parent 8c38694b7e
commit 899590432a
3 changed files with 56 additions and 1 deletions

View File

@@ -23,11 +23,13 @@
// Copyright © 2020 Natalia Portillo
*******************************************************************************/
using System.Collections.ObjectModel;
using System.Reactive;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Controls.ApplicationLifetimes;
using ReactiveUI;
using RomRepoMgr.Models;
using RomRepoMgr.Views;
namespace RomRepoMgr.ViewModels
@@ -42,8 +44,14 @@ namespace RomRepoMgr.ViewModels
ExitCommand = ReactiveCommand.Create(ExecuteExitCommand);
SettingsCommand = ReactiveCommand.Create(ExecuteSettingsCommand);
AboutCommand = ReactiveCommand.Create(ExecuteAboutCommand);
RomSets = new ObservableCollection<RomSetModel>();
}
public ObservableCollection<RomSetModel> RomSets { get; }
public string RomSetLabel => "ROM sets";
public string RomSetNameLabel => "Name";
public string RomSetVersionLabel => "Version";
public string Greeting => "Hello World!";
public bool NativeMenuSupported =>
NativeMenu.GetIsNativeMenuExported((Application.Current.ApplicationLifetime as