private async void OnLoaded(object sender, RoutedEventArgs routedEventArgs)
        {
            MovingRect.Begin();
            await StaticMethod.LoadDataTask();

            this.Frame.Navigate(typeof(FunctionSelectPage));
        }
Пример #2
0
        private async void OnLoaded(object sender, RoutedEventArgs routedEventArgs)
        {
            MovingRect.Begin();
            await Task.Run(() => LoadAllStations());

            await Task.Run(() => LoadDataFile());

            await Task.Run(() => LoadStationInfo());

            await Task.Run(() => LoadAllBus());

            Frame rootFrame = Window.Current.Content as Frame;

            if (rootFrame != null)
            {
                rootFrame.Navigate(typeof(PageGroups.MainPage));
            }
        }