# HG changeset patch # User sarias # Date 1252478288 -7200 # Node ID d30b625ecb8b6fec0e1576929dc77f07f280e216 # Parent 0efa1d506f287bbb6ebfdc9fb2d5b7b44026b0b3 Projet test Syncsource (Player et Timeline) diff -r 0efa1d506f28 -r d30b625ecb8b test/Control.SyncSource.Test/Control.SyncSource.Test.sln --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/Control.SyncSource.Test/Control.SyncSource.Test.sln Wed Sep 09 08:38:08 2009 +0200 @@ -0,0 +1,52 @@ + +Microsoft Visual Studio Solution File, Format Version 10.00 +# Visual Studio 2008 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Control.SyncSource.Test", "Control.SyncSource.Test\Control.SyncSource.Test.csproj", "{5377FCE7-5C99-4781-A299-346C312052C5}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FingersDance.Control.SyncSource", "..\..\src\FingersDance.Control.SyncSource\FingersDance.Control.SyncSource.csproj", "{BE5AD2E7-8BC2-414A-AB92-34E4D7357740}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FingersDance.Control.Player", "..\..\src\FingersDance.Control.Player\FingersDance.Control.Player.csproj", "{E3CD404C-F344-4B0D-9C72-61F45EAE3BE1}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FingersDance.Control.TimeLine", "..\..\src\FingersDance.Control.TimeLine\FingersDance.Control.TimeLine.csproj", "{2BCEE1BF-D3AC-478C-A26B-DFDB7420E965}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {5377FCE7-5C99-4781-A299-346C312052C5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5377FCE7-5C99-4781-A299-346C312052C5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5377FCE7-5C99-4781-A299-346C312052C5}.Debug|x86.ActiveCfg = Debug|Any CPU + {5377FCE7-5C99-4781-A299-346C312052C5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5377FCE7-5C99-4781-A299-346C312052C5}.Release|Any CPU.Build.0 = Release|Any CPU + {5377FCE7-5C99-4781-A299-346C312052C5}.Release|x86.ActiveCfg = Release|Any CPU + {BE5AD2E7-8BC2-414A-AB92-34E4D7357740}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BE5AD2E7-8BC2-414A-AB92-34E4D7357740}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BE5AD2E7-8BC2-414A-AB92-34E4D7357740}.Debug|x86.ActiveCfg = Debug|Any CPU + {BE5AD2E7-8BC2-414A-AB92-34E4D7357740}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BE5AD2E7-8BC2-414A-AB92-34E4D7357740}.Release|Any CPU.Build.0 = Release|Any CPU + {BE5AD2E7-8BC2-414A-AB92-34E4D7357740}.Release|x86.ActiveCfg = Release|Any CPU + {E3CD404C-F344-4B0D-9C72-61F45EAE3BE1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E3CD404C-F344-4B0D-9C72-61F45EAE3BE1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E3CD404C-F344-4B0D-9C72-61F45EAE3BE1}.Debug|x86.ActiveCfg = Debug|x86 + {E3CD404C-F344-4B0D-9C72-61F45EAE3BE1}.Debug|x86.Build.0 = Debug|x86 + {E3CD404C-F344-4B0D-9C72-61F45EAE3BE1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E3CD404C-F344-4B0D-9C72-61F45EAE3BE1}.Release|Any CPU.Build.0 = Release|Any CPU + {E3CD404C-F344-4B0D-9C72-61F45EAE3BE1}.Release|x86.ActiveCfg = Release|x86 + {E3CD404C-F344-4B0D-9C72-61F45EAE3BE1}.Release|x86.Build.0 = Release|x86 + {2BCEE1BF-D3AC-478C-A26B-DFDB7420E965}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2BCEE1BF-D3AC-478C-A26B-DFDB7420E965}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2BCEE1BF-D3AC-478C-A26B-DFDB7420E965}.Debug|x86.ActiveCfg = Debug|x86 + {2BCEE1BF-D3AC-478C-A26B-DFDB7420E965}.Debug|x86.Build.0 = Debug|x86 + {2BCEE1BF-D3AC-478C-A26B-DFDB7420E965}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2BCEE1BF-D3AC-478C-A26B-DFDB7420E965}.Release|Any CPU.Build.0 = Release|Any CPU + {2BCEE1BF-D3AC-478C-A26B-DFDB7420E965}.Release|x86.ActiveCfg = Release|x86 + {2BCEE1BF-D3AC-478C-A26B-DFDB7420E965}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff -r 0efa1d506f28 -r d30b625ecb8b test/Control.SyncSource.Test/Control.SyncSource.Test/App.xaml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/Control.SyncSource.Test/Control.SyncSource.Test/App.xaml Wed Sep 09 08:38:08 2009 +0200 @@ -0,0 +1,13 @@ + + + + + + + + + diff -r 0efa1d506f28 -r d30b625ecb8b test/Control.SyncSource.Test/Control.SyncSource.Test/App.xaml.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/Control.SyncSource.Test/Control.SyncSource.Test/App.xaml.cs Wed Sep 09 08:38:08 2009 +0200 @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Linq; +using System.Windows; + +namespace Control.SyncSource.Test +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + + } +} \ No newline at end of file diff -r 0efa1d506f28 -r d30b625ecb8b test/Control.SyncSource.Test/Control.SyncSource.Test/Control.SyncSource.Test.csproj --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/Control.SyncSource.Test/Control.SyncSource.Test/Control.SyncSource.Test.csproj Wed Sep 09 08:38:08 2009 +0200 @@ -0,0 +1,121 @@ + + + Debug + AnyCPU + {5377FCE7-5C99-4781-A299-346C312052C5} + {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Control.SyncSource.Test + Control.SyncSource.Test + v3.5 + 4 + winexe + true + Web + true + Foreground + 7 + Days + false + false + false + 1.0.0.* + true + true + Publish\ + OnBuildSuccess + + + true + full + false + .\bin\Debug\ + DEBUG;TRACE + + + false + true + .\bin\Release\ + TRACE + + + + + 3.5 + + + 3.5 + + + 3.5 + + + + + + + + + + + + + MSBuild:Compile + Designer + + + App.xaml + Code + + + + + + ResXFileCodeGenerator + Designer + Resources.Designer.cs + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + True + Resources.resx + + + True + True + Settings.settings + + + SurfaceWindow1.xaml + + + + + + PreserveNewest + + + PreserveNewest + + + + + + + + + MSBuild:Compile + Designer + + + + + {BE5AD2E7-8BC2-414A-AB92-34E4D7357740} + FingersDance.Control.SyncSource + + + + \ No newline at end of file diff -r 0efa1d506f28 -r d30b625ecb8b test/Control.SyncSource.Test/Control.SyncSource.Test/Control.SyncSource.Test.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/Control.SyncSource.Test/Control.SyncSource.Test/Control.SyncSource.Test.xml Wed Sep 09 08:38:08 2009 +0200 @@ -0,0 +1,64 @@ + + + + + + Control.SyncSource.Test + Control.SyncSource.Test + Control.SyncSource.Test.exe + + Resources\icon.png + + Resources\iconPreview.png + + + + + + + + + + + + + \ No newline at end of file diff -r 0efa1d506f28 -r d30b625ecb8b test/Control.SyncSource.Test/Control.SyncSource.Test/Properties/AssemblyInfo.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/Control.SyncSource.Test/Control.SyncSource.Test/Properties/AssemblyInfo.cs Wed Sep 09 08:38:08 2009 +0200 @@ -0,0 +1,62 @@ +#region Using directives + +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Resources; +using System.Globalization; +using System.Windows; +using System.Runtime.InteropServices; + +#endregion + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Control.SyncSource.Test")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Control.SyncSource.Test")] +[assembly: AssemblyCopyright("Copyright @ 2009")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] +[assembly: ComVisible(false)] + +//In order to begin building localizable applications, set +//CultureYouAreCodingWith in your .csproj file +//inside a . For example, if you are using US english +//in your source files, set the to en-US. Then uncomment +//the NeutralResourceLanguage attribute below. Update the "en-US" in +//the line below to match the UICulture setting in the project file. + +//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] + + +// Specifies the location in which theme dictionaries are stored for types in an assembly. +[assembly: ThemeInfo( + // Specifies the location of system theme-specific resource dictionaries for this project. + // The default setting in this project is "None" since this default project does not + // include these user-defined theme files: + // Themes\Aero.NormalColor.xaml + // Themes\Classic.xaml + // Themes\Luna.Homestead.xaml + // Themes\Luna.Metallic.xaml + // Themes\Luna.NormalColor.xaml + // Themes\Royale.NormalColor.xaml + ResourceDictionaryLocation.None, + + // Specifies the location of the system non-theme specific resource dictionary: + // Themes\generic.xaml + ResourceDictionaryLocation.SourceAssembly)] + + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Revision and Build Numbers +// by using the '*' as shown below: +[assembly: AssemblyVersion("1.0.*")] diff -r 0efa1d506f28 -r d30b625ecb8b test/Control.SyncSource.Test/Control.SyncSource.Test/Properties/Resources.Designer.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/Control.SyncSource.Test/Control.SyncSource.Test/Properties/Resources.Designer.cs Wed Sep 09 08:38:08 2009 +0200 @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.3074 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Control.SyncSource.Test.Properties +{ + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if (object.ReferenceEquals(resourceMan, null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WPFAppTemplate.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff -r 0efa1d506f28 -r d30b625ecb8b test/Control.SyncSource.Test/Control.SyncSource.Test/Properties/Resources.resx --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/Control.SyncSource.Test/Control.SyncSource.Test/Properties/Resources.resx Wed Sep 09 08:38:08 2009 +0200 @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff -r 0efa1d506f28 -r d30b625ecb8b test/Control.SyncSource.Test/Control.SyncSource.Test/Properties/Settings.Designer.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/Control.SyncSource.Test/Control.SyncSource.Test/Properties/Settings.Designer.cs Wed Sep 09 08:38:08 2009 +0200 @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.3074 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Control.SyncSource.Test.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff -r 0efa1d506f28 -r d30b625ecb8b test/Control.SyncSource.Test/Control.SyncSource.Test/Properties/Settings.settings --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/Control.SyncSource.Test/Control.SyncSource.Test/Properties/Settings.settings Wed Sep 09 08:38:08 2009 +0200 @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff -r 0efa1d506f28 -r d30b625ecb8b test/Control.SyncSource.Test/Control.SyncSource.Test/Resources/Lake.wmv Binary file test/Control.SyncSource.Test/Control.SyncSource.Test/Resources/Lake.wmv has changed diff -r 0efa1d506f28 -r d30b625ecb8b test/Control.SyncSource.Test/Control.SyncSource.Test/Resources/WindowBackground.jpg Binary file test/Control.SyncSource.Test/Control.SyncSource.Test/Resources/WindowBackground.jpg has changed diff -r 0efa1d506f28 -r d30b625ecb8b test/Control.SyncSource.Test/Control.SyncSource.Test/Resources/icon.png Binary file test/Control.SyncSource.Test/Control.SyncSource.Test/Resources/icon.png has changed diff -r 0efa1d506f28 -r d30b625ecb8b test/Control.SyncSource.Test/Control.SyncSource.Test/Resources/iconPreview.png Binary file test/Control.SyncSource.Test/Control.SyncSource.Test/Resources/iconPreview.png has changed diff -r 0efa1d506f28 -r d30b625ecb8b test/Control.SyncSource.Test/Control.SyncSource.Test/SurfaceWindow1.xaml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/Control.SyncSource.Test/Control.SyncSource.Test/SurfaceWindow1.xaml Wed Sep 09 08:38:08 2009 +0200 @@ -0,0 +1,16 @@ + + + + + + + + + + diff -r 0efa1d506f28 -r d30b625ecb8b test/Control.SyncSource.Test/Control.SyncSource.Test/SurfaceWindow1.xaml.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/Control.SyncSource.Test/Control.SyncSource.Test/SurfaceWindow1.xaml.cs Wed Sep 09 08:38:08 2009 +0200 @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Shapes; +using System.Windows.Threading; +using Microsoft.Surface; +using Microsoft.Surface.Presentation; +using Microsoft.Surface.Presentation.Controls; + +namespace Control.SyncSource.Test +{ + /// + /// Interaction logic for SurfaceWindow1.xaml + /// + public partial class SurfaceWindow1 : SurfaceWindow + { + /// + /// Default constructor. + /// + public SurfaceWindow1() + { + InitializeComponent(); + + // Add handlers for Application activation events + AddActivationHandlers(); + } + + + /// + /// Occurs when the window is about to close. + /// + /// + protected override void OnClosed(EventArgs e) + { + base.OnClosed(e); + + // Remove handlers for Application activation events + RemoveActivationHandlers(); + } + + /// + /// Adds handlers for Application activation events. + /// + private void AddActivationHandlers() + { + // Subscribe to surface application activation events + ApplicationLauncher.ApplicationActivated += OnApplicationActivated; + ApplicationLauncher.ApplicationPreviewed += OnApplicationPreviewed; + ApplicationLauncher.ApplicationDeactivated += OnApplicationDeactivated; + } + + /// + /// Removes handlers for Application activation events. + /// + private void RemoveActivationHandlers() + { + // Unsubscribe from surface application activation events + ApplicationLauncher.ApplicationActivated -= OnApplicationActivated; + ApplicationLauncher.ApplicationPreviewed -= OnApplicationPreviewed; + ApplicationLauncher.ApplicationDeactivated -= OnApplicationDeactivated; + } + + /// + /// This is called when application has been activated. + /// + /// + /// + private void OnApplicationActivated(object sender, EventArgs e) + { + //TODO: enable audio, animations here + } + + /// + /// This is called when application is in preview mode. + /// + /// + /// + private void OnApplicationPreviewed(object sender, EventArgs e) + { + //TODO: Disable audio here if it is enabled + + //TODO: optionally enable animations here + } + + /// + /// This is called when application has been deactivated. + /// + /// + /// + private void OnApplicationDeactivated(object sender, EventArgs e) + { + //TODO: disable audio, animations here + } + } +} \ No newline at end of file