示例#1
0
        public override async void OnNavigatedTo(INavigationParameters param)
        {
            if (Ds.NeedInit)
            {
                var path = AppFile.GetPath();
                path = Path.Combine(path, AppUtils.DbName);
                await Ds.Init(path);
            }

            var runTimer5 = param?[nameof(NavParamEnum.RunTimer5)] as bool?;

            if (runTimer5 != null && (bool)runTimer5)
            {
                var objGameName = param?[nameof(NavParamEnum.GameName)];
                if (objGameName != null)
                {
                    _gameName = objGameName.ToString();
                    if (_timer == null)
                    {
                        _timer = new ActionTimer();
                        _timer.InitAndStart(ShowMess);
                    }
                    else
                    {
                        _timer.Restart();
                    }
                }
            }

            await InitGames();
        }