X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=test5%2FMainPage.xaml.cs;fp=test5%2FMainPage.xaml.cs;h=daeca3df60e96c11667fabfc98a5e6d45ef4e7a7;hb=08bcb090f6a3e6ee38c712571f24b57a4dd32fb4;hp=a125451311ae46e74e9bd51ae4ee47673ed55730;hpb=7fe25aa821826f09903fb14def74d6b0376e3b5a;p=psychlops%2Fsilverlight.git diff --git a/test5/MainPage.xaml.cs b/test5/MainPage.xaml.cs index a125451..daeca3d 100644 --- a/test5/MainPage.xaml.cs +++ b/test5/MainPage.xaml.cs @@ -1,13 +1,17 @@ -using Psychlops; -using System; +using System; +using System.Collections.Generic; +using System.Linq; using System.Windows; using System.Windows.Media; using System.Windows.Media.Effects; using System.Windows.Media.Media3D; +using Psychlops; -namespace PsychlopsSilverlight4test + +namespace PsychlopsSilverlight5test { + public partial class MainPage : System.Windows.Controls.UserControl { //System.Collections.Generic.IEnumerator main_routine; @@ -38,7 +42,7 @@ namespace PsychlopsSilverlight4test //main_routine.RunWorkerAsync(); main = new PsychlopsSilverlightApp.PsychlopsMain(); -// Psychlops.AppState.statusBar. + // Psychlops.AppState.statusBar. Psychlops.Internal.Main.routine = new System.Threading.Thread(main.psychlops_main); Psychlops.Internal.Main.routine.Start(); //main.initialize(); @@ -50,20 +54,21 @@ namespace PsychlopsSilverlight4test AppStatusBar.Text = "Now starting Psychlops environment... please wait a minute"; -//eff__ = new Psychlops.Shader.GaborProgram(); -//rect__ = new System.Windows.Shapes.Rectangle(); -//rect__.Width = 200; -//rect__.Height = 200; -//rect__.Effect = eff__; -//rect__.Fill = new System.Windows.Media.SolidColorBrush(System.Windows.Media.Colors.Blue); + //eff__ = new Psychlops.Shader.GaborProgram(); + //rect__ = new System.Windows.Shapes.Rectangle(); + //rect__.Width = 200; + //rect__.Height = 200; + //rect__.Effect = eff__; + //rect__.Fill = new System.Windows.Media.SolidColorBrush(System.Windows.Media.Colors.Blue); } - protected void getFocusMouseEnter(object sender, System.Windows.Input.MouseEventArgs e) { + protected void getFocusMouseEnter(object sender, System.Windows.Input.MouseEventArgs e) + { this.Focus(); -//if(!b) { LayoutRoot.Children.Add(rect__); b = true; } + //if(!b) { LayoutRoot.Children.Add(rect__); b = true; } } -//System.Windows.Shapes.Rectangle rect__; -//Psychlops.Shader.GaborProgram eff__; -//bool b = false; + //System.Windows.Shapes.Rectangle rect__; + //Psychlops.Shader.GaborProgram eff__; + //bool b = false; private void CompositionTarget_Rendering(object sender, System.EventArgs e) { @@ -78,7 +83,4 @@ namespace PsychlopsSilverlight4test } - - } -