Example #1
0
        private void Initialize()
        {
            var builder = new ContainerBuilder();

            builder.RegisterInstance(new NavigationManager());

            builder.RegisterType <ApiClient>()
            .SingleInstance();

            builder.RegisterType <UserSession.UserSession>()
            .SingleInstance();

            RegisterViewModels(builder);
            RegisterManagers(builder);
            RegisterServices(builder);

            ServiceLocator.Initialize(builder.Build());

            UIThreadHelper.AccessUIThread(InitializeShell);
        }
Example #2
0
 public void ShowError(string message)
 {
     UIThreadHelper.AccessUIThread(() => MessageBox.Show(message));
 }