OSDN Git Service

32
[psychlops/silverlight.git] / test3 / MainPage.xaml.cs
index 8bb50a0..e1f3496 100644 (file)
@@ -14,7 +14,7 @@ namespace PsychlopsSilverlight3test
                {\r
                        InitializeComponent();\r
                        // Show fps counter\r
-                       //Canvas.default_buffer_frame = main_buffer;\r
+\r
                        Canvas.default_api_canvas = LayoutRoot;\r
                        Canvas.default_panel = this;\r
                        this.IsTabStop = true;\r
@@ -29,14 +29,13 @@ namespace PsychlopsSilverlight3test
                        //main_routine.RunWorkerAsync();\r
 \r
                        main = new PsychlopsMain();\r
-                       //main.initialize();\r
                        Psychlops.Internal.Main.routine = new System.Threading.Thread(main.psychlops_main);\r
                        Psychlops.Internal.Main.routine.Start();\r
+                       //main.initialize();\r
                        //main_routine = main.psychlops_main();\r
-#if DEBUG\r
-                       DebugConsole = new System.Windows.Controls.TextBlock();\r
-                       TotalRoot.Children.Add(DebugConsole);\r
-#endif\r
+\r
+                       Psychlops.Internal.Main.statusBar = AppStatusBar;\r
+                       Psychlops.Internal.Main.widgetStack = Controller;\r
                }\r
                protected void getFocusMouseEnter(object sender, System.Windows.Input.MouseEventArgs e) {\r
                        this.Focus();\r