UWUVCI-AIO-WPF/UWUVCI AIO WPF/UI/Frames/SettingsFrame.xaml.cs

141 lines
4.4 KiB
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Forms;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using UWUVCI_AIO_WPF.UI.Windows;
namespace UWUVCI_AIO_WPF.UI.Frames
{
/// <summary>
/// Interaktionslogik für SettingsFrame.xaml
/// </summary>
public partial class SettingsFrame : Page, IDisposable
{
MainWindow parent;
public SettingsFrame(MainWindow mw)
{
InitializeComponent();
parent = mw;
}
public void Dispose()
{
}
private void Button_Click(object sender, RoutedEventArgs e)
{
/* TitleKeys tk = new TitleKeys();
tk.ShowDialog();*/
}
private void Button_Click_1(object sender, RoutedEventArgs e)
{
MainViewModel mvm = FindResource("mvm") as MainViewModel;
mvm.EnterKey(true);
}
private void Button_Click_2(object sender, RoutedEventArgs e)
{
parent.paths(false);
}
private void Button_Click_3(object sender, RoutedEventArgs e)
{
MainViewModel mvm = FindResource("mvm") as MainViewModel;
mvm.UpdateBases();
}
private void Button_Click_4(object sender, RoutedEventArgs e)
{
Process[] pname = Process.GetProcessesByName("INICreator");
if (pname.Length == 0)
{
Process.Start(@"bin\Tools\INICreator.exe");
}
}
private void Button_Click_5(object sender, RoutedEventArgs e)
{
2020-05-04 16:20:21 +00:00
Custom_Message cm = new Custom_Message("Credits", "UWUVCI AIO - NicoAICP, Morilli, Lreiia Bot\nBeta Testers/Contributors - wowjinxy, Danis, Adolfobenjaminv\n\n7za - Igor Pavlov\nBuildPcePkg & BuildTurboCDPcePkg - JohnnyGo\nCdecrypt - crediar\nCNUSPACKER - NicoAICP, Morilli\nINICreator - NicoAICP\nN64Converter - Morilli\npng2tga - Easy2Convert\ninject_gba_c (psb) - Morilli\nRetroInject_C - Morilli\ntga_verify - Morilli\nWiiUDownloader - Morilli\nwiiurpxtool - 0CHB0\nGoomba - FluBBa\nDarkFilter Removal N64 - MelonSpeedruns\nNintendont SD Card Menu - TeconMoon\nwit - Wiimm\nGetExtTypePatcher - Fix94\nnfs2iso2nfs - sabykos, piratesephiroth, Fix94 and many more\nWii-VMC - wanikoko\nIcon/TV Bootimages - Flump\nNKit - nanook");
try
{
cm.Owner = (FindResource("mvm") as MainViewModel).mw;
}
catch (Exception)
{
}
cm.ShowDialog();
}
private void Button_Click_6(object sender, RoutedEventArgs e)
{
MainViewModel mvm = FindResource("mvm") as MainViewModel;
mvm.Update(true);
}
private void Button_Click_7(object sender, RoutedEventArgs e)
{
MainViewModel mvm = FindResource("mvm") as MainViewModel;
mvm.UpdateTools();
}
private void Button_Click_8(object sender, RoutedEventArgs e)
{
MainViewModel mvm = FindResource("mvm") as MainViewModel;
2020-04-17 16:02:45 +00:00
mvm.ResetTKQuest();
}
2020-04-16 04:41:25 +00:00
private void Button_Click_9(object sender, RoutedEventArgs e)
{
Process[] pname = Process.GetProcessesByName("NintendontConfig");
if (pname.Length == 0)
{
Process.Start(@"bin\Tools\NintendontConfig.exe");
}
2020-04-16 04:41:25 +00:00
}
2020-04-21 19:52:52 +00:00
private void Button_Click_10(object sender, RoutedEventArgs e)
{
Properties.Settings.Default.dont = false;
2020-05-07 07:49:36 +00:00
Properties.Settings.Default.ndsw = false;
Properties.Settings.Default.snesw = false;
Properties.Settings.Default.gczw = false;
2020-04-21 19:52:52 +00:00
Properties.Settings.Default.Save();
}
2020-05-24 20:59:09 +00:00
private void Button_Click_11(object sender, RoutedEventArgs e)
{
LogoCreator ic = new LogoCreator() ;
try
{
ic.Owner = (FindResource("mvm") as MainViewModel).mw;
}
catch (Exception)
{
}
ic.ShowDialog();
2020-05-24 20:59:09 +00:00
}
}
}