You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.1 KiB
48 lines
1.1 KiB
using System;
|
|
using System.Collections.Generic;
|
|
|
|
using Xamarin.Forms;
|
|
|
|
namespace TheGameExtreme.view
|
|
{
|
|
public partial class Settings : ContentPage
|
|
{
|
|
|
|
public Settings()
|
|
{
|
|
InitializeComponent();
|
|
|
|
}
|
|
|
|
private void CBBr_CheckedChanged(object sender, CheckedChangedEventArgs e)
|
|
{
|
|
if(CBBr.IsChecked == true)
|
|
{
|
|
CBFr.IsChecked = !CBBr.IsChecked;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
private void CBFr_CheckedChanged(object sender, CheckedChangedEventArgs e)
|
|
{
|
|
if(CBFr.IsChecked == true)
|
|
{
|
|
CBBr.IsChecked = !CBBr.IsChecked;
|
|
}
|
|
}
|
|
|
|
private void Switch_Toggled_Theme(object sender, ToggledEventArgs e)
|
|
{
|
|
if(swTheme.IsToggled == false)
|
|
{
|
|
pageContentSetting.Style = Application.Current.Resources["MyBackGroundColorStyle1"] as Style;
|
|
}
|
|
else
|
|
{
|
|
pageContentSetting.Style = Application.Current.Resources["MyBackGroundColorStyle2"] as Style;
|
|
}
|
|
}
|
|
}
|
|
}
|