You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.2 KiB
45 lines
1.2 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Configuration;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
using Business;
|
|
using Persistance;
|
|
|
|
namespace WpfApp1
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for App.xaml
|
|
/// </summary>
|
|
public partial class App : Application
|
|
{
|
|
public static IPersistanceManager strat { get; private set; }
|
|
= new DataContractPersistance();
|
|
public static IPersistanceManager stubtruc { get; set; }
|
|
= new StubLib.Stub();
|
|
public Manager LeManager { get; private set; } = new Manager(strat);
|
|
public ManagerUsers LeManagerUsers { get; private set; } = new ManagerUsers(strat);
|
|
|
|
public void Temp()
|
|
{
|
|
var mw = MainWindow as MainWindow;
|
|
}
|
|
|
|
private void Application_Activated(object sender, EventArgs e)
|
|
{
|
|
|
|
LeManager.LoadRequins();
|
|
LeManagerUsers.LoadUsers();
|
|
}
|
|
|
|
private void Application_Deactivated(object sender, EventArgs e)
|
|
{
|
|
|
|
LeManager.SaveRequins();
|
|
LeManagerUsers.SaveUsers();
|
|
}
|
|
}
|
|
}
|