36 lines
793 B
C#
36 lines
793 B
C#
using DichtheitManagement.Contract;
|
|
using GuiWPF.ViewModel;
|
|
using Mappings;
|
|
using Ninject;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Configuration;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
|
|
namespace GuiWPF
|
|
{
|
|
/// <summary>
|
|
/// Interaktionslogik für "App.xaml"
|
|
/// </summary>
|
|
public partial class App : Application
|
|
{
|
|
protected override void OnStartup(StartupEventArgs e)
|
|
{
|
|
base.OnStartup(e);
|
|
|
|
|
|
|
|
#if !DEBUG
|
|
MessageBox.Show("Kein gültiger Lizenz gefunden!");
|
|
Environment.Exit(0);
|
|
#else
|
|
var window = new MainWindow() { DataContext = new MainWindowViewModel() };
|
|
window.Show();
|
|
#endif
|
|
}
|
|
}
|
|
}
|