auto-creamapi-2/auto-creamapi/Views/SearchResultView.xaml.cs

48 lines
1.3 KiB
C#
Raw Normal View History

using MvvmCross.Platforms.Wpf.Presenters.Attributes;
2020-12-19 19:14:40 -05:00
namespace auto_creamapi.Views
2020-12-19 19:14:40 -05:00
{
/// <summary>
/// Interaction logic for SearchResultWindow.xaml
2020-12-19 19:14:40 -05:00
/// </summary>
[MvxWindowPresentation(Identifier = nameof(SearchResultView), Modal = false)]
public partial class SearchResultView
2020-12-19 19:14:40 -05:00
{
public SearchResultView()
2020-12-19 19:14:40 -05:00
{
InitializeComponent();
//DgApps.ItemsSource = list;
2020-12-19 19:14:40 -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)
{
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();
}
2020-12-19 19:14:40 -05:00
}
Close();
}*/
2020-12-19 19:14:40 -05:00
}
}