2019-04-22 18:41:43 +12:00
|
|
|
using System.Diagnostics;
|
|
|
|
using System.Windows;
|
|
|
|
using System.Windows.Controls;
|
|
|
|
using System.Windows.Navigation;
|
|
|
|
|
2021-05-18 08:27:27 +12:00
|
|
|
namespace VRCMelonAssistant.Pages
|
2019-04-22 18:41:43 +12:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Interaction logic for Intro.xaml
|
|
|
|
/// </summary>
|
|
|
|
public partial class Intro : Page
|
|
|
|
{
|
|
|
|
public static Intro Instance = new Intro();
|
|
|
|
|
|
|
|
public Intro()
|
|
|
|
{
|
|
|
|
InitializeComponent();
|
|
|
|
}
|
|
|
|
|
|
|
|
private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e)
|
|
|
|
{
|
|
|
|
Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));
|
|
|
|
e.Handled = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
private void Disagree_Click(object sender, RoutedEventArgs e)
|
|
|
|
{
|
2019-05-05 12:50:59 +12:00
|
|
|
MainWindow.Instance.ModsButton.IsEnabled = false;
|
|
|
|
Properties.Settings.Default.Agreed = false;
|
|
|
|
Properties.Settings.Default.Save();
|
2020-02-02 19:27:37 +13:00
|
|
|
MessageBox.Show((string)FindResource("Intro:ClosingApp"));
|
2020-11-17 03:02:28 +13:00
|
|
|
Application.Current.Shutdown();
|
2019-04-22 18:41:43 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
private void Agree_Click(object sender, RoutedEventArgs e)
|
|
|
|
{
|
2021-05-18 08:27:27 +12:00
|
|
|
MainWindow.Instance.ModsButton.IsEnabled = true;
|
2020-02-02 19:27:37 +13:00
|
|
|
|
2021-05-18 08:27:27 +12:00
|
|
|
string text = (string) FindResource("Intro:ModsTabEnabled");
|
|
|
|
Utils.SendNotify(text);
|
|
|
|
MainWindow.Instance.MainText = text;
|
2019-04-22 18:41:43 +12:00
|
|
|
Properties.Settings.Default.Agreed = true;
|
|
|
|
Properties.Settings.Default.Save();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|