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-04-10 00:05:01 +00:00
|
|
|
|
tb.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)
|
|
|
|
|
{
|
2020-04-10 00:05:01 +00:00
|
|
|
|
tb.Visibility = Visibility.Hidden;
|
2020-03-31 23:48:50 +00:00
|
|
|
|
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;
|
2020-04-09 18:40:48 +00:00
|
|
|
|
case 4:
|
2020-03-31 23:48:50 +00:00
|
|
|
|
DestroyFrame();
|
|
|
|
|
tbTitleBar.Text = "UWUVCI AIO - NES TKeys";
|
|
|
|
|
load_frame.Content = new TKFrame(GameConsoles.NES);
|
|
|
|
|
break;
|
2020-04-09 18:40:48 +00:00
|
|
|
|
case 3:
|
2020-03-31 23:48:50 +00:00
|
|
|
|
DestroyFrame();
|
2020-04-10 00:05:01 +00:00
|
|
|
|
tbTitleBar.Text = "UWUVCI AIO - SNES TKeys";
|
2020-03-31 23:48:50 +00:00
|
|
|
|
load_frame.Content = new TKFrame(GameConsoles.SNES);
|
|
|
|
|
break;
|
2020-04-06 13:50:54 +00:00
|
|
|
|
case 5:
|
|
|
|
|
DestroyFrame();
|
2020-04-10 00:05:01 +00:00
|
|
|
|
tbTitleBar.Text = "UWUVCI AIO - TurboGrafX-16 TKeys";
|
2020-04-06 13:50:54 +00:00
|
|
|
|
load_frame.Content = new TKFrame(GameConsoles.TG16);
|
|
|
|
|
break;
|
2020-04-07 01:09:05 +00:00
|
|
|
|
case 6:
|
|
|
|
|
DestroyFrame();
|
2020-04-10 00:05:01 +00:00
|
|
|
|
tbTitleBar.Text = "UWUVCI AIO - MSX TKeys";
|
2020-04-07 01:09:05 +00:00
|
|
|
|
load_frame.Content = new TKFrame(GameConsoles.MSX);
|
|
|
|
|
break;
|
2020-03-31 23:48:50 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|