mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-22 18:41:26 -07:00
32 lines
1018 B
C#
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));
|
|
}
|
|
}
|
|
}
|