2020-03-01 15:52:59 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2020-04-04 22:16:55 +00:00
|
|
|
|
using System.Diagnostics;
|
2020-03-01 15:52:59 +00:00
|
|
|
|
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;
|
2020-06-11 08:12:03 +00:00
|
|
|
|
using System.Windows.Forms;
|
2020-03-01 15:52:59 +00:00
|
|
|
|
using System.Windows.Input;
|
|
|
|
|
using System.Windows.Media;
|
|
|
|
|
using System.Windows.Media.Imaging;
|
|
|
|
|
using System.Windows.Navigation;
|
|
|
|
|
using System.Windows.Shapes;
|
2020-03-13 22:35:20 +00:00
|
|
|
|
using UWUVCI_AIO_WPF.UI.Windows;
|
2020-03-01 15:52:59 +00:00
|
|
|
|
|
2020-04-04 22:16:55 +00:00
|
|
|
|
|
2020-03-01 15:52:59 +00:00
|
|
|
|
namespace UWUVCI_AIO_WPF.UI.Frames
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Interaktionslogik für SettingsFrame.xaml
|
|
|
|
|
/// </summary>
|
|
|
|
|
public partial class SettingsFrame : Page, IDisposable
|
|
|
|
|
{
|
2020-04-02 19:45:24 +00:00
|
|
|
|
MainWindow parent;
|
|
|
|
|
public SettingsFrame(MainWindow mw)
|
2020-03-01 15:52:59 +00:00
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2020-04-02 19:45:24 +00:00
|
|
|
|
parent = mw;
|
2020-04-28 23:40:54 +00:00
|
|
|
|
|
2020-03-01 15:52:59 +00:00
|
|
|
|
}
|
|
|
|
|
public void Dispose()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
2020-03-13 22:35:20 +00:00
|
|
|
|
|
|
|
|
|
private void Button_Click(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
2020-04-28 23:40:54 +00:00
|
|
|
|
/* TitleKeys tk = new TitleKeys();
|
|
|
|
|
tk.ShowDialog();*/
|
2020-03-13 22:35:20 +00:00
|
|
|
|
}
|
2020-03-31 23:48:50 +00:00
|
|
|
|
|
|
|
|
|
private void Button_Click_1(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
MainViewModel mvm = FindResource("mvm") as MainViewModel;
|
|
|
|
|
mvm.EnterKey(true);
|
|
|
|
|
}
|
2020-04-02 19:45:24 +00:00
|
|
|
|
|
|
|
|
|
private void Button_Click_2(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
parent.paths(false);
|
|
|
|
|
}
|
2020-04-03 23:20:15 +00:00
|
|
|
|
|
|
|
|
|
private void Button_Click_3(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
MainViewModel mvm = FindResource("mvm") as MainViewModel;
|
|
|
|
|
mvm.UpdateBases();
|
|
|
|
|
}
|
2020-04-04 22:16:55 +00:00
|
|
|
|
|
|
|
|
|
private void Button_Click_4(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
2020-04-18 03:31:36 +00:00
|
|
|
|
Process[] pname = Process.GetProcessesByName("INICreator");
|
|
|
|
|
if (pname.Length == 0)
|
|
|
|
|
{
|
|
|
|
|
Process.Start(@"bin\Tools\INICreator.exe");
|
|
|
|
|
}
|
|
|
|
|
|
2020-04-04 22:16:55 +00:00
|
|
|
|
}
|
2020-04-06 23:33:46 +00:00
|
|
|
|
|
|
|
|
|
private void Button_Click_5(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
2020-06-13 15:53:59 +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 - \nImage Creation Base - Phacox\nWiiGameLanguage Patcher - ReturnerS\nChangeAspectRatio - andot\nvWii Title Forwarder - Fix94");
|
2020-05-04 16:20:21 +00:00
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
cm.Owner = (FindResource("mvm") as MainViewModel).mw;
|
|
|
|
|
}
|
|
|
|
|
catch (Exception)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
cm.ShowDialog();
|
2020-04-07 21:21:38 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void Button_Click_6(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
MainViewModel mvm = FindResource("mvm") as MainViewModel;
|
2020-04-18 03:31:36 +00:00
|
|
|
|
mvm.Update(true);
|
2020-04-07 21:21:38 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void Button_Click_7(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
MainViewModel mvm = FindResource("mvm") as MainViewModel;
|
|
|
|
|
mvm.UpdateTools();
|
2020-04-06 23:33:46 +00:00
|
|
|
|
}
|
2020-04-08 22:22:42 +00:00
|
|
|
|
|
|
|
|
|
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-08 22:22:42 +00:00
|
|
|
|
}
|
2020-04-16 04:41:25 +00:00
|
|
|
|
|
|
|
|
|
private void Button_Click_9(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
2020-04-18 03:31:36 +00:00
|
|
|
|
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)
|
|
|
|
|
{
|
2020-06-13 07:27:42 +00:00
|
|
|
|
LogoCreator ic = new LogoCreator() ;
|
2020-06-11 08:12:03 +00:00
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
ic.Owner = (FindResource("mvm") as MainViewModel).mw;
|
|
|
|
|
}
|
|
|
|
|
catch (Exception)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
2020-06-13 07:27:42 +00:00
|
|
|
|
ic.ShowDialog();
|
|
|
|
|
|
2020-05-24 20:59:09 +00:00
|
|
|
|
}
|
2020-06-01 23:36:49 +00:00
|
|
|
|
|
|
|
|
|
|
2020-03-01 15:52:59 +00:00
|
|
|
|
}
|
|
|
|
|
}
|