2021-09-30 15:31:13 +02:00
|
|
|
|
using BeWo.MultiLanguage;
|
|
|
|
|
|
using BeWo.ServiceProxy;
|
|
|
|
|
|
using BeWo.View.Controls;
|
|
|
|
|
|
using BeWo.View.Search;
|
|
|
|
|
|
using BS.Shared.Translation;
|
2021-09-30 12:21:32 +02:00
|
|
|
|
using BS.SharedLauncher.Information;
|
|
|
|
|
|
using BS.SharedLauncher.Interfaces;
|
|
|
|
|
|
using BS.SharedLauncher.Windows;
|
2021-08-03 09:59:12 +02:00
|
|
|
|
using System;
|
2021-09-30 12:21:32 +02:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Configuration;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.ServiceModel;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
2021-08-03 09:59:12 +02:00
|
|
|
|
using System.Windows;
|
|
|
|
|
|
|
|
|
|
|
|
namespace BeWo
|
|
|
|
|
|
{
|
|
|
|
|
|
public class StartRoutine : IStartRoutine
|
|
|
|
|
|
{
|
2021-09-30 12:21:32 +02:00
|
|
|
|
public void OnStartup(IBeWoWindow main, Application app)
|
2021-08-03 09:59:12 +02:00
|
|
|
|
{
|
2021-09-30 12:21:32 +02:00
|
|
|
|
//new MainSession(app);
|
|
|
|
|
|
|
|
|
|
|
|
ConnectionInformation.CoreServerAddress = ConnectionInformation.CoreServerAddressOrigin.ToString();
|
|
|
|
|
|
ServiceFacade.UpdateServerAddresses(ConnectionInformation.CoreServerAddress);
|
|
|
|
|
|
|
|
|
|
|
|
MainSession.LoggedOnUser = ServiceFacade.DoUserServiceSync(x => x.LoadUserByNameAndPassword(ConnectionInformation.Username, ConnectionInformation.Password));
|
|
|
|
|
|
MainSession.Mandator = ServiceFacade.DoOperationsServiceSync(x => x.GetMandator());
|
|
|
|
|
|
|
|
|
|
|
|
var dict = new MainDictionary();
|
|
|
|
|
|
|
|
|
|
|
|
app.Resources.MergedDictionaries.Add(dict);
|
2021-09-30 15:31:13 +02:00
|
|
|
|
|
|
|
|
|
|
Translator t = new Translator(new ServiceTranslator());
|
|
|
|
|
|
|
|
|
|
|
|
//var test = Session.FindResource("SupportConceptListBrush");
|
|
|
|
|
|
|
|
|
|
|
|
//throw new NotImplementedException("#342342342309");
|
|
|
|
|
|
|
|
|
|
|
|
//new SupportConceptSearchView();
|
|
|
|
|
|
|
|
|
|
|
|
new SingleSupportConceptSelectionControl();
|
2021-08-03 09:59:12 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2021-09-30 12:21:32 +02:00
|
|
|
|
}
|