bloxstrap/Bloxstrap/Views/Pages/IntegrationsPage.xaml.cs
pizzaboxer 1d48657152 Followup on custom integration support
stopped being lazy and actually added editing inside the menu window
2023-02-15 15:33:06 +00:00

32 lines
1018 B
C#

using System;
using System.Windows;
using System.Windows.Controls;
using Bloxstrap.Models;
using Bloxstrap.ViewModels;
namespace Bloxstrap.Views.Pages
{
/// <summary>
/// Interaction logic for IntegrationsPage.xaml
/// </summary>
public partial class IntegrationsPage
{
public IntegrationsPage()
{
DataContext = new IntegrationsViewModel();
InitializeComponent();
// rbxfpsunlocker does not have 64 bit support
if (!Environment.Is64BitOperatingSystem)
this.RbxFpsUnlockerOptions.Visibility = Visibility.Collapsed;
}
public void CustomIntegrationSelection(object sender, SelectionChangedEventArgs e)
{
IntegrationsViewModel viewModel = (IntegrationsViewModel)DataContext;
viewModel.SelectedCustomIntegration = (CustomIntegration)((ListBox)sender).SelectedItem;
viewModel.OnPropertyChanged(nameof(viewModel.SelectedCustomIntegration));
}
}
}