Initial Commit
This commit is contained in:
40
View/Dialogs/DatabaseSelectorDialogView.xaml.cs
Normal file
40
View/Dialogs/DatabaseSelectorDialogView.xaml.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
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;
|
||||
using DebtMgr.Extensions;
|
||||
|
||||
namespace DebtMgr.View.Dialogs
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaktionslogik für DatabaseSelectorDialogView.xaml
|
||||
/// </summary>
|
||||
public partial class DatabaseSelectorDialogView : Window
|
||||
{
|
||||
public DatabaseSelectorDialogView()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
this.CenterOnParent();
|
||||
|
||||
App.Locator.DatabaseSelectorDialogView.RequestClose += (s, e) => Close();
|
||||
DataContext = App.Locator.DatabaseSelectorDialogView;
|
||||
}
|
||||
|
||||
private void Window_OnKeyUp(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.Key.Equals(Key.Escape))
|
||||
Application.Current.Shutdown();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user