--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test/TestMenu/TestMenu/ActionOpenMedia.cs Wed Aug 05 16:23:13 2009 +0200
@@ -0,0 +1,34 @@
+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 TestMenu
+{
+ class ActionOpenMedia : ActionBase
+ {
+ string _Text = "";
+
+ public ActionOpenMedia(string text)
+ {
+ _Text = text;
+ }
+
+ public void Execute()
+ {
+ MessageBox.Show(_Text);
+ }
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test/TestMenu/TestMenu/ActionPlayMedia.cs Wed Aug 05 16:23:13 2009 +0200
@@ -0,0 +1,34 @@
+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 TestMenu
+{
+ class ActionPlayMedia : ActionBase
+ {
+ string _Text = "";
+
+ public ActionPlayMedia(string text)
+ {
+ _Text = text;
+ }
+
+ public void Execute()
+ {
+ MessageBox.Show(_Text);
+ }
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test/TestMenu/TestMenu/ActionStopMedia.cs Wed Aug 05 16:23:13 2009 +0200
@@ -0,0 +1,34 @@
+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 TestMenu
+{
+ class ActionStopMedia : ActionBase
+ {
+ string _Text = "";
+
+ public ActionStopMedia(string text)
+ {
+ _Text = text;
+ }
+
+ public void Execute()
+ {
+ MessageBox.Show(_Text);
+ }
+ }
+}
--- a/test/TestMenu/TestMenu/TestMenu.csproj Wed Aug 05 16:16:52 2009 +0200
+++ b/test/TestMenu/TestMenu/TestMenu.csproj Wed Aug 05 16:23:13 2009 +0200
@@ -90,7 +90,10 @@
<ItemGroup>
<Compile Include="ActionBase.cs" />
<Compile Include="ActionFactory.cs" />
+ <Compile Include="ActionOpenMedia.cs" />
+ <Compile Include="ActionPlayMedia.cs" />
<Compile Include="ActionShowMessage.cs" />
+ <Compile Include="ActionStopMedia.cs" />
<Compile Include="Item.cs" />
<Compile Include="Menu.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
--- a/test/TestMenu/TestMenu/test.xml Wed Aug 05 16:16:52 2009 +0200
+++ b/test/TestMenu/TestMenu/test.xml Wed Aug 05 16:23:13 2009 +0200
@@ -2,56 +2,29 @@
<Menu xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Items>
<Item>
- <name>Elt1</name>
+ <name>Item1</name>
<Items>
<Item>
- <name>Elt1-1</name>
- <Items>
- <Item>
- <name>ShowMessage</name>
- <items/>
- </Item>
- <Item>
- <name>Elt1-1_2</name>
- <items/>
- </Item>
- <Item>
- <name>Elt1-1_3</name>
- <items/>
- </Item>
- </Items>
+ <name>ShowMessage</name>
+ <Items/>
</Item>
<Item>
- <name>Elt1-2</name>
- <Items>
- <Item>
- <name>Elt1-2_1</name>
- <items/>
- </Item>
- </Items>
+ <name>PlayMedia</name>
+ <Items/>
</Item>
</Items>
</Item>
<Item>
- <name>Elt2</name>
+ <name>Item2</name>
<Items>
<Item>
- <name>Elt2-1</name>
- <Items>
- <Item>
- <name>Elt2-1_1</name>
- <items/>
- </Item>
- <Item>
- <name>Elt2-1_2</name>
- <items/>
- </Item>
- </Items>
+ <name>StopMedia</name>
+ <Items/>
</Item>
</Items>
</Item>
<Item>
- <name>Elt3</name>
+ <name>OpenMedia</name>
<Items/>
</Item>
</Items>