2020-12-28 09:27:37 -05:00
|
|
|
|
using MvvmCross.Platforms.Wpf.Presenters.Attributes;
|
2020-12-19 19:14:40 -05:00
|
|
|
|
|
2020-12-28 09:27:37 -05:00
|
|
|
|
namespace auto_creamapi.Views
|
2020-12-19 19:14:40 -05:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2020-12-28 09:27:37 -05:00
|
|
|
|
/// Interaction logic for SearchResultWindow.xaml
|
2020-12-19 19:14:40 -05:00
|
|
|
|
/// </summary>
|
2020-12-28 09:27:37 -05:00
|
|
|
|
[MvxWindowPresentation(Identifier = nameof(SearchResultView), Modal = false)]
|
|
|
|
|
public partial class SearchResultView
|
2020-12-19 19:14:40 -05:00
|
|
|
|
{
|
2020-12-28 09:27:37 -05:00
|
|
|
|
public SearchResultView()
|
2020-12-19 19:14:40 -05:00
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2020-12-28 09:27:37 -05:00
|
|
|
|
//DgApps.ItemsSource = list;
|
2020-12-19 19:14:40 -05:00
|
|
|
|
}
|
|
|
|
|
|
2020-12-28 09:27:37 -05:00
|
|
|
|
/*private void OK_OnClick(object sender, RoutedEventArgs e)
|
2020-12-19 19:14:40 -05:00
|
|
|
|
{
|
|
|
|
|
GetSelectedApp();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void DgApps_OnMouseDoubleClick(object sender, MouseButtonEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
GetSelectedApp();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void Cancel_OnClick(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
Close();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void GetSelectedApp()
|
|
|
|
|
{
|
|
|
|
|
if (Application.Current.MainWindow is MainWindow currentMainWindow)
|
|
|
|
|
{
|
2020-12-23 06:34:31 -05:00
|
|
|
|
var app = (SteamApp) DgApps.SelectedItem;
|
|
|
|
|
if (app != null)
|
|
|
|
|
{
|
|
|
|
|
MyLogger.Log.Information($"Successfully got app {app}");
|
2020-12-25 10:49:51 -05:00
|
|
|
|
//currentMainWindow.Game.Text = app.Name;
|
|
|
|
|
//currentMainWindow.AppId.Text = app.AppId.ToString();
|
2020-12-23 06:34:31 -05:00
|
|
|
|
}
|
2020-12-19 19:14:40 -05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Close();
|
2020-12-28 09:27:37 -05:00
|
|
|
|
}*/
|
2020-12-19 19:14:40 -05:00
|
|
|
|
}
|
2020-12-28 09:27:37 -05:00
|
|
|
|
}
|