diff --git a/GoldbergGUI.Core/GoldbergGUI.Core.csproj b/GoldbergGUI.Core/GoldbergGUI.Core.csproj
index 7ee430e..567800d 100644
--- a/GoldbergGUI.Core/GoldbergGUI.Core.csproj
+++ b/GoldbergGUI.Core/GoldbergGUI.Core.csproj
@@ -2,12 +2,9 @@
netcoreapp3.1
+ 0.1.0
-
-
-
-
diff --git a/GoldbergGUI.Core/ViewModels/MainViewModel.cs b/GoldbergGUI.Core/ViewModels/MainViewModel.cs
index 16b220a..48d57cf 100644
--- a/GoldbergGUI.Core/ViewModels/MainViewModel.cs
+++ b/GoldbergGUI.Core/ViewModels/MainViewModel.cs
@@ -1,8 +1,10 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
+using System.Diagnostics;
using System.IO;
using System.Linq;
+using System.Reflection;
using System.Threading.Tasks;
using GoldbergGUI.Core.Models;
using GoldbergGUI.Core.Services;
@@ -232,6 +234,9 @@ namespace GoldbergGUI.Core.ViewModels
}
}
+ public string AboutVersionText =>
+ FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).FileVersion;
+
// COMMANDS //
public IMvxCommand OpenFileCommand => new MvxAsyncCommand(OpenFile);
@@ -274,14 +279,28 @@ namespace GoldbergGUI.Core.ViewModels
}
else
{
+ var startSearch = false;
var list = _steam.GetListOfAppsByName(GameName);
var steamApps = list as SteamApp[] ?? list.ToArray();
if (steamApps.Length == 1)
{
- GameName = steamApps[0].Name;
- AppId = steamApps[0].AppId;
+ var steamApp = steamApps[0];
+ if (steamApp != null)
+ {
+ GameName = steamApp.Name;
+ AppId = steamApp.AppId;
+ }
+ else
+ {
+ startSearch = true;
+ }
}
else
+ {
+ startSearch = true;
+ }
+
+ if (startSearch)
{
var navigateTask = _navigationService
.Navigate, SteamApp>(steamApps);
@@ -394,6 +413,11 @@ namespace GoldbergGUI.Core.ViewModels
await RaisePropertyChanged(() => SteamInterfacesTxtExists).ConfigureAwait(false);
MainWindowEnabled = true;
}
+
+ public IMvxCommand PasteDlcCommand => new MvxCommand(() =>
+ {
+ _log.Debug("Received CTRL+V");
+ });
// OTHER METHODS //
diff --git a/GoldbergGUI.WPF/Views/MainView.xaml b/GoldbergGUI.WPF/Views/MainView.xaml
index abd736c..f11b658 100644
--- a/GoldbergGUI.WPF/Views/MainView.xaml
+++ b/GoldbergGUI.WPF/Views/MainView.xaml
@@ -15,6 +15,12 @@
+
@@ -29,6 +35,10 @@
+
+
+
@@ -100,11 +110,21 @@
-
-
-
-
-
+
diff --git a/GoldbergGUI.WPF/Views/MainView.xaml.cs b/GoldbergGUI.WPF/Views/MainView.xaml.cs
index 1b1a044..99155fb 100644
--- a/GoldbergGUI.WPF/Views/MainView.xaml.cs
+++ b/GoldbergGUI.WPF/Views/MainView.xaml.cs
@@ -1,13 +1,13 @@
using MvvmCross.Platforms.Wpf.Presenters.Attributes;
-using MvvmCross.Platforms.Wpf.Views;
+// ReSharper disable UnusedType.Global
namespace GoldbergGUI.WPF.Views
{
///
/// Interaction logic for MainView.xaml
///
[MvxContentPresentation(WindowIdentifier = nameof(MainWindow))]
- public partial class MainView : MvxWpfView
+ public partial class MainView
{
public MainView()
{