Added link to forum search
Added status bar List of DLC is now monospaced Fixed weird crash with search result window
This commit is contained in:
parent
56e92924ed
commit
45f86ecc63
11 changed files with 1447 additions and 129 deletions
|
@ -11,6 +11,7 @@ using System.Windows.Input;
|
|||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
using auto_creamapi.POCOs;
|
||||
using auto_creamapi.Utils;
|
||||
using NinjaNye.SearchExtensions;
|
||||
using NinjaNye.SearchExtensions.Models;
|
||||
|
@ -22,7 +23,7 @@ namespace auto_creamapi
|
|||
/// </summary>
|
||||
public partial class SearchResultWindow
|
||||
{
|
||||
public SearchResultWindow(IEnumerable<POCOs.App> list)
|
||||
public SearchResultWindow(IEnumerable<SteamApp> list)
|
||||
{
|
||||
InitializeComponent();
|
||||
DgApps.ItemsSource = list;
|
||||
|
@ -47,10 +48,13 @@ namespace auto_creamapi
|
|||
{
|
||||
if (Application.Current.MainWindow is MainWindow currentMainWindow)
|
||||
{
|
||||
var app = (POCOs.App) DgApps.SelectedItem;
|
||||
MyLogger.Log.Information($"Successfully got app {app}");
|
||||
currentMainWindow.Game.Text = app.Name;
|
||||
currentMainWindow.AppId.Text = app.AppId.ToString();
|
||||
var app = (SteamApp) DgApps.SelectedItem;
|
||||
if (app != null)
|
||||
{
|
||||
MyLogger.Log.Information($"Successfully got app {app}");
|
||||
currentMainWindow.Game.Text = app.Name;
|
||||
currentMainWindow.AppId.Text = app.AppId.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
Close();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue