Example #1
0
        public App()
        {
            InitializeComponent();

            if (_isInitalized == false)
            {
                _isInitalized = true;

                Connector.Register(typeof(LoadingViewModel), typeof(LoadingView));
                Connector.Register(typeof(MainScreenViewModel), typeof(MainScreenView));

                TranslationProvider.Initalize(new System.Globalization.CultureInfo("en-US"), Translations.ResourceManager);

                Navigator.Instance.SetRoot(Connector.CreateInstance <MainScreenViewModel>((vm, v) => { vm.Initalize(); }));
            }
            else
            {
                Navigator.Instance.SetRoot(Navigator.Instance.GetRoot());
            }
        }