bloxstrap/Bloxstrap/UI/Elements/Settings/Pages/IntegrationsPage.xaml.cs
pizzaboxer 776dbc4097
Draft: new installer system
the beginning of a long arduous cleanup of two years of debt
2024-08-10 13:08:04 +01:00

26 lines
795 B
C#

using System.Windows.Controls;
using Bloxstrap.UI.ViewModels.Settings;
namespace Bloxstrap.UI.Elements.Settings.Pages
{
/// <summary>
/// Interaction logic for IntegrationsPage.xaml
/// </summary>
public partial class IntegrationsPage
{
public IntegrationsPage()
{
DataContext = new IntegrationsViewModel();
InitializeComponent();
}
public void CustomIntegrationSelection(object sender, SelectionChangedEventArgs e)
{
IntegrationsViewModel viewModel = (IntegrationsViewModel)DataContext;
viewModel.SelectedCustomIntegration = (CustomIntegration)((ListBox)sender).SelectedItem;
viewModel.OnPropertyChanged(nameof(viewModel.SelectedCustomIntegration));
}
}
}