Exemple #1
0
        private async void Page_Loaded(object sender, RoutedEventArgs e)
        {
#if DEBUG
            ContentDialog debugDialog = new ContentDialog
            {
                Title               = "这是一个不稳定的预发布软件",
                Content             = "您猛然惊醒,却已身处某难以名状的未来游戏中。这里有Bug,随处可见,难以避免。这个来自未来的游戏并不稳定,它只是用于测试。",
                PrimaryButtonText   = "我认命了",
                SecondaryButtonText = "让我离开这里"
            };

            ContentDialogResult result = await debugDialog.ShowAsync( );

            if (result != ContentDialogResult.Primary)
            {
                App.Current.Exit( );
            }
#endif

            Debug.WriteLine("Loaded");
            Debug.WriteLine(AnalyticsInfo.DeviceForm);
            Debug.WriteLine(AnalyticsInfo.VersionInfo.DeviceFamily);

            await Mobile.HideWindowsMobileStatusBar( );

            StartStoryboard.Completed += StartStoryboard_Completed;
            StartStoryboard.Begin( );
            _taskToWait = Task.WhenAll(Startup.RunAllTask( ), XamlMapRenderers.Startup.RunAllTask( ));
        }
Exemple #2
0
 private void Page_Loaded(object sender, RoutedEventArgs e)
 {
     if (Parameters != null)
     {
         GenerateList( );
     }
     StartStoryboard.Begin( );
     StartStoryboard.Completed += StartStoryboard_Completed;
 }
Exemple #3
0
 private void Page_Loaded(object sender, object e)
 {
     if (AppSettings.Current.OcdMode)
     {
         MainGrid.TurnOnOcdMode( );
     }
     if (AppSettings.Current.ComicSansMode)
     {
         MainGrid.TurnOnComicSansMode( );
     }
     StartStoryboard.Completed += StartStoryboard_Completed;
     StartStoryboard.Begin( );
 }
        private void Page_Loaded(object sender, RoutedEventArgs e)
        {
            Image map = new Image {
                Source = new BitmapImage( )
            };

            GameMapView.Items.Add(map);

            Parameters.Map = new Map("Test.xml");


            StartStoryboard.Begin( );
            StartStoryboard.Completed += StartStoryboard_Completed;
        }
Exemple #5
0
        private void MainPage_Loaded(object sender, RoutedEventArgs e)
        {
            Title.Text = AppSettings.Current.GameTitle.ContentWithSpace;

            //if ( Windows . System . Profile . AnalyticsInfo . VersionInfo . DeviceFamily == "Windows.Mobile" )
            //{
            //	RootGrid . Margin = new Thickness ( 0 , 0 , -Width * 0.25 , -Height * 0.25 );
            //	RootGrid . Width = Width * 1.25;
            //	RootGrid . Height = Height * 1.25;
            //	RootGrid . RenderTransform = new ScaleTransform { ScaleX = 1 / 1.25 , ScaleY = 1 / 1.25 };
            //}
            if (AppSettings.Current.OcdMode)
            {
                MainGrid.TurnOnOcdMode( );
            }
            if (AppSettings.Current.ComicSansMode)
            {
                MainGrid.TurnOnComicSansMode( );
            }
            StartStoryboard.Completed += StartStoryboard_Completed;
            StartStoryboard.Begin( );
        }
Exemple #6
0
 private void LicensePage_Loaded(object sender, RoutedEventArgs e)
 {
     WebView.Navigate(new Uri("ms-appx-web:///License/AGPL.htm"));
     StartStoryboard.Completed += StartStoryboard_Completed;
     StartStoryboard.Begin( );
 }
Exemple #7
0
 private void Page_Loaded(object sender, RoutedEventArgs e)
 {
     StartStoryboard.Begin( );
 }
Exemple #8
0
 private void PhotosensitiveSeizureWarningPage_Loaded(object sender, RoutedEventArgs e)
 {
     StartStoryboard.Completed += StartStoryboard_Completed;
     StartStoryboard.Begin( );
 }
Exemple #9
0
 private void MyWishPage_Loaded(object sender, RoutedEventArgs e)
 {
     StartStoryboard.Completed += StartStoryboard_Completed;
     StartStoryboard.Begin( );
 }