Пример #1
0
        protected override void OnStart()
        {
            string StartPage = string.Empty;

            if (DataStore.DS.IsDataLoaded)
            {
                NavigationService.NavigateAsync("MainPage/NavigationPage/" + nameof(HubPage));
                return;
            }

            AppCenterInit();

            CardSizes.Current.ReCalculateCardWidths();

            // TODO create platform specific check for allowed rotations until xamarin.essentials
            // gives me the data

            IPlatformSpecific ps = Container.Resolve <IPlatformSpecific>();

            DataStore.CN = Container.Resolve <ICommonNotifications>();

            DataStore.NV = new NavCmd(Container.Resolve <IEventAggregator>());

            IDataRepositoryManager temp = Container.Resolve <IDataRepositoryManager>();

            // Start at the MessageLog Page and work from there
            StartPage = nameof(MessageLogPage);

            NavigationService.NavigateAsync("MainPage/NavigationPage/" + StartPage);
        }
Пример #2
0
        protected override void OnStart()
        {
            if (DataStore.DS.IsDataLoaded)
            {
                NavigationService.NavigateAsync("MainPage/NavigationPage/" + nameof(HubPage));
                return;
            }

            AppCenterInit();

            CardSizes.Current.ReCalculateCardWidths();

            // TODO create platform specific check for allowed rotations until xamarin.essentials
            // gives me the data

            IPlatformSpecific ps = Container.Resolve <IPlatformSpecific>();

            DataStore.CN = Container.Resolve <ICommonNotifications>();

            DataStore.NV = new NavCmd(Container.Resolve <IEventAggregator>());

            IDataRepositoryManager temp = Container.Resolve <IDataRepositoryManager>();

            // Start at the MessageLog Page if no other paramaters and work from there
            if (!DataStore.NV.TargetNavParams.Any())
            {
                DataStore.NV.TargetNavParams.Add(CommonConstants.NavigationParameterTargetView, nameof(MessageLogPage));
            }

            DataStore.NV.TargetNavParams.TryGetValue(CommonConstants.NavigationParameterTargetView, out string targetView);

            NavigationService.NavigateAsync("MainPage/NavigationPage/" + targetView);
        }
Пример #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="repositoryManager">Repository manager</param>
 public GlobalRepository(IDataRepositoryManager repositoryManager)
 {
     _repositoryManager = repositoryManager;
 }