-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathVersionSelector.xaml.cs
More file actions
35 lines (28 loc) · 916 Bytes
/
VersionSelector.xaml.cs
File metadata and controls
35 lines (28 loc) · 916 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using Playnite.SDK;
using Playnite.SDK.Controls;
using RomM.Models.RomM.Rom;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Windows;
namespace RomM.VersionSelector
{
public partial class RomMVersionSelector : PluginUserControl
{
public ObservableCollection<GameInstallInfo> RomVersions { get; set; }
public bool Cancelled { get; set; } = true;
public RomMVersionSelector(List<GameInstallInfo> romVersions)
{
RomVersions = new ObservableCollection<GameInstallInfo>(romVersions);
InitializeComponent();
}
private void Click_Cancel(object sender, RoutedEventArgs e)
{
((Window)Parent).Close();
}
private void Click_Install(object sender, RoutedEventArgs e)
{
Cancelled = false;
((Window)Parent).Close();
}
}
}