48 lines
1.5 KiB
C#
48 lines
1.5 KiB
C#
using BeWo.MultiLanguage;
|
|
using BeWo.ServiceProxy;
|
|
using BeWo.View.Controls;
|
|
using BeWo.View.Search;
|
|
using BS.Shared.Translation;
|
|
using BS.SharedLauncher.Information;
|
|
using BS.SharedLauncher.Interfaces;
|
|
using BS.SharedLauncher.Windows;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Configuration;
|
|
using System.Linq;
|
|
using System.ServiceModel;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
|
|
namespace BeWo
|
|
{
|
|
public class StartRoutine : IStartRoutine
|
|
{
|
|
public void OnStartup(IBeWoWindow main, Application app)
|
|
{
|
|
//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);
|
|
|
|
Translator t = new Translator(new ServiceTranslator());
|
|
|
|
//var test = Session.FindResource("SupportConceptListBrush");
|
|
|
|
//throw new NotImplementedException("#342342342309");
|
|
|
|
//new SupportConceptSearchView();
|
|
|
|
new SingleSupportConceptSelectionControl();
|
|
}
|
|
}
|
|
}
|