X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=test4%2FMainPage.xaml.cs;h=3925f7b678e7bbdf8457e5175c4bc3226413873f;hb=0aaced545d70ae3bd6cdd440e0ce676f6a602761;hp=036c20dea30502a755b1eeebebdd8eea02344ae2;hpb=34bf2da0cf6f0207458ad313697e94eb3360bf0c;p=psychlops%2Fsilverlight.git diff --git a/test4/MainPage.xaml.cs b/test4/MainPage.xaml.cs index 036c20d..3925f7b 100644 --- a/test4/MainPage.xaml.cs +++ b/test4/MainPage.xaml.cs @@ -6,7 +6,7 @@ namespace PsychlopsSilverlight4test { //System.Collections.Generic.IEnumerator main_routine; public System.Windows.Controls.Image master; - public PsychlopsMain main; + public PsychlopsSilverlightApp.PsychlopsMain main; #if DEBUG public System.Windows.Controls.TextBlock DebugConsole; #endif @@ -23,21 +23,33 @@ namespace PsychlopsSilverlight4test System.Windows.Application.Current.Host.Settings.MaxFrameRate = 60; System.Windows.Application.Current.Host.Settings.EnableFrameRateCounter = true; System.Windows.Application.Current.Host.Settings.EnableCacheVisualization = false; + //System.Windows.Application.Current.Host.Settings.EnableGPUAcceleration = false; // System.Windows.Media.CompositionTarget.Rendering += new System.EventHandler(CompositionTarget_Rendering); //main_routine = new System.ComponentModel.BackgroundWorker(); //main_routine.DoWork += new System.ComponentModel.DoWorkEventHandler(psychlops_main); //main_routine.RunWorkerAsync(); - main = new PsychlopsMain(); + main = new PsychlopsSilverlightApp.PsychlopsMain(); +// Psychlops.AppState.statusBar. Psychlops.Internal.Main.routine = new System.Threading.Thread(main.psychlops_main); Psychlops.Internal.Main.routine.Start(); //main.initialize(); //main_routine = main.psychlops_main(); Psychlops.Internal.Main.statusBar = AppStatusBar; - Psychlops.Internal.Main.widgetStack = Controller; - AppStatusBar.Text = System.Windows.Application.Current.Host.Settings.EnableGPUAcceleration.ToString(); + //Psychlops.Internal.Main.widgetStack = Controller; + AppStatusBar.Text = "Now starting Psychlops environment... please wait a minute"; + + + var ur = new System.Uri("Resources/logo.png", System.UriKind.RelativeOrAbsolute); + var bitmap = new System.Windows.Media.Imaging.BitmapImage(ur); + var img = new System.Windows.Controls.Image(); + img.Source = bitmap; + System.Windows.Controls.Canvas.SetLeft(img, 100); + System.Windows.Controls.Canvas.SetTop(img, 100); + LayoutRoot.Children.Add(img); + } protected void getFocusMouseEnter(object sender, System.Windows.Input.MouseEventArgs e) { this.Focus();