2020-03-13 22:35:20 +00:00
|
|
|
|
using GameBaseClassLibrary;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
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.Input;
|
|
|
|
|
using System.Windows.Media;
|
|
|
|
|
using System.Windows.Media.Imaging;
|
|
|
|
|
using System.Windows.Shapes;
|
2020-03-31 23:48:50 +00:00
|
|
|
|
using UWUVCI_AIO_WPF.UI.Frames;
|
|
|
|
|
using UWUVCI_AIO_WPF.UI.Frames.KeyFrame;
|
2020-03-13 22:35:20 +00:00
|
|
|
|
|
|
|
|
|
namespace UWUVCI_AIO_WPF.UI.Windows
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Interaktionslogik für TitleKeys.xaml
|
|
|
|
|
/// </summary>
|
|
|
|
|
public partial class TitleKeys : Window
|
|
|
|
|
{
|
|
|
|
|
public TitleKeys()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2020-03-31 23:48:50 +00:00
|
|
|
|
tbA.Text = "To enter a TitleKey, first select the console on your left\nand then double click on a Title you want to enter the Key for.";
|
2020-03-13 22:35:20 +00:00
|
|
|
|
}
|
2020-03-31 23:48:50 +00:00
|
|
|
|
private void ButtonCloseMenu_Click(object sender, RoutedEventArgs e)
|
2020-03-13 22:35:20 +00:00
|
|
|
|
{
|
2020-03-31 23:48:50 +00:00
|
|
|
|
ButtonOpenMenu.Visibility = Visibility.Visible;
|
|
|
|
|
ButtonCloseMenu.Visibility = Visibility.Collapsed;
|
2020-03-13 22:35:20 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-03-31 23:48:50 +00:00
|
|
|
|
private void ButtonOpenMenu_Click(object sender, RoutedEventArgs e)
|
2020-03-13 22:35:20 +00:00
|
|
|
|
{
|
2020-03-31 23:48:50 +00:00
|
|
|
|
ButtonOpenMenu.Visibility = Visibility.Collapsed;
|
|
|
|
|
ButtonCloseMenu.Visibility = Visibility.Visible;
|
2020-03-13 22:35:20 +00:00
|
|
|
|
}
|
|
|
|
|
private void MoveWindow(object sender, MouseButtonEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
if (e.ChangedButton == MouseButton.Left)
|
|
|
|
|
this.DragMove();
|
|
|
|
|
}
|
|
|
|
|
catch (Exception)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-03-31 23:48:50 +00:00
|
|
|
|
private void DestroyFrame()
|
|
|
|
|
{
|
|
|
|
|
//(load_frame.Content as IDisposable).Dispose();
|
|
|
|
|
load_frame.Content = null;
|
|
|
|
|
load_frame.NavigationService.RemoveBackEntry();
|
|
|
|
|
}
|
|
|
|
|
private void ListView_Click(object sender, MouseButtonEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
tbA.Visibility = Visibility.Hidden;
|
|
|
|
|
switch ((sender as ListView).SelectedIndex)
|
|
|
|
|
{
|
|
|
|
|
case 0:
|
|
|
|
|
DestroyFrame();
|
|
|
|
|
tbTitleBar.Text = "UWUVCI AIO - NDS TKeys";
|
|
|
|
|
load_frame.Content = new TKFrame(GameConsoles.NDS);
|
|
|
|
|
break;
|
|
|
|
|
case 1:
|
|
|
|
|
DestroyFrame();
|
|
|
|
|
tbTitleBar.Text = "UWUVCI AIO - GBA TKeys";
|
|
|
|
|
load_frame.Content = new TKFrame(GameConsoles.GBA);
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
DestroyFrame();
|
|
|
|
|
tbTitleBar.Text = "UWUVCI AIO - N64 TKeys";
|
|
|
|
|
load_frame.Content = new TKFrame(GameConsoles.N64);
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
DestroyFrame();
|
|
|
|
|
tbTitleBar.Text = "UWUVCI AIO - NES TKeys";
|
|
|
|
|
load_frame.Content = new TKFrame(GameConsoles.NES);
|
|
|
|
|
break;
|
|
|
|
|
case 4:
|
|
|
|
|
DestroyFrame();
|
|
|
|
|
tbTitleBar.Text = "UWUVCI AIO - TKeys";
|
|
|
|
|
load_frame.Content = new TKFrame(GameConsoles.SNES);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
private void Window_Close(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
this.Close();
|
|
|
|
|
}
|
2020-03-13 22:35:20 +00:00
|
|
|
|
|
2020-03-31 23:48:50 +00:00
|
|
|
|
private void Window_Minimize(object sender, RoutedEventArgs e)
|
2020-03-13 22:35:20 +00:00
|
|
|
|
{
|
2020-03-31 23:48:50 +00:00
|
|
|
|
this.WindowState = WindowState.Minimized;
|
2020-03-13 22:35:20 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|