[Roam-commit] SF.net SVN: roam: [107] Trunk/Source
Status: Alpha
Brought to you by:
jonfroehlich
|
From: <jon...@us...> - 2007-11-29 18:52:13
|
Revision: 107
http://roam.svn.sourceforge.net/roam/?rev=107&view=rev
Author: jonfroehlich
Date: 2007-11-29 10:52:10 -0800 (Thu, 29 Nov 2007)
Log Message:
-----------
added PowerTest
Modified Paths:
--------------
Trunk/Source/Roam.sln
Trunk/Source/Roam.suo
Added Paths:
-----------
Trunk/Source/PowerTest/
Trunk/Source/PowerTest/Power2TestForm.Designer.cs
Trunk/Source/PowerTest/Power2TestForm.cs
Trunk/Source/PowerTest/Power2TestForm.resx
Trunk/Source/PowerTest/PowerTest.csproj
Trunk/Source/PowerTest/PowerTest.csproj.user
Trunk/Source/PowerTest/Program.cs
Trunk/Source/PowerTest/Properties/
Trunk/Source/PowerTest/Properties/AssemblyInfo.cs
Trunk/Source/PowerTest/Properties/Resources.Designer.cs
Trunk/Source/PowerTest/Properties/Resources.resx
Property Changed:
----------------
Trunk/Source/
Property changes on: Trunk/Source
___________________________________________________________________
Name: svn:ignore
- Roam.ncb
PowerTest
+ Roam.ncb
Property changes on: Trunk/Source/PowerTest
___________________________________________________________________
Name: svn:ignore
+ bin
obj
Added: Trunk/Source/PowerTest/Power2TestForm.Designer.cs
===================================================================
--- Trunk/Source/PowerTest/Power2TestForm.Designer.cs (rev 0)
+++ Trunk/Source/PowerTest/Power2TestForm.Designer.cs 2007-11-29 18:52:10 UTC (rev 107)
@@ -0,0 +1,139 @@
+namespace Roam.Test.Utils
+{
+ partial class Power2TestForm
+ {
+ /// <summary>
+ /// Required designer variable.
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+ private System.Windows.Forms.MainMenu mainMenu1;
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ private void InitializeComponent()
+ {
+ this.mainMenu1 = new System.Windows.Forms.MainMenu();
+ this._menuItemClose = new System.Windows.Forms.MenuItem();
+ this.menuItem2 = new System.Windows.Forms.MenuItem();
+ this._menuItemGoIdle2 = new System.Windows.Forms.MenuItem();
+ this.menuItem1 = new System.Windows.Forms.MenuItem();
+ this._scrollableLabel1 = new Roam.UI.Controls.ScrollableLabel();
+ this._scrollableLabel2 = new Roam.UI.Controls.ScrollableLabel();
+ this._menuItemSubscribe1 = new System.Windows.Forms.MenuItem();
+ this._menuItemSubscribe2 = new System.Windows.Forms.MenuItem();
+ this._menuItemGoIdle = new System.Windows.Forms.MenuItem();
+ this.SuspendLayout();
+ //
+ // mainMenu1
+ //
+ this.mainMenu1.MenuItems.Add(this._menuItemClose);
+ this.mainMenu1.MenuItems.Add(this.menuItem2);
+ //
+ // _menuItemClose
+ //
+ this._menuItemClose.Text = "Close";
+ this._menuItemClose.Click += new System.EventHandler(this._menuItemClose_Click);
+ //
+ // menuItem2
+ //
+ this.menuItem2.MenuItems.Add(this._menuItemGoIdle);
+ this.menuItem2.MenuItems.Add(this._menuItemGoIdle2);
+ this.menuItem2.MenuItems.Add(this.menuItem1);
+ this.menuItem2.MenuItems.Add(this._menuItemSubscribe1);
+ this.menuItem2.MenuItems.Add(this._menuItemSubscribe2);
+ this.menuItem2.Text = "Menu";
+ //
+ // _menuItemGoIdle2
+ //
+ this._menuItemGoIdle2.Text = "Go Idle 2";
+ this._menuItemGoIdle2.Click += new System.EventHandler(this._menuItemGoIdle2_Click);
+ //
+ // menuItem1
+ //
+ this.menuItem1.Text = "Clear Logs";
+ this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
+ //
+ // _scrollableLabel1
+ //
+ this._scrollableLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this._scrollableLabel1.Font = new System.Drawing.Font("Segoe Condensed", 6F, System.Drawing.FontStyle.Regular);
+ this._scrollableLabel1.Location = new System.Drawing.Point(0, 0);
+ this._scrollableLabel1.Name = "_scrollableLabel1";
+ this._scrollableLabel1.Size = new System.Drawing.Size(240, 139);
+ this._scrollableLabel1.TabIndex = 1;
+ this._scrollableLabel1.Text = "scrollableLabel1";
+ //
+ // _scrollableLabel2
+ //
+ this._scrollableLabel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this._scrollableLabel2.Font = new System.Drawing.Font("Segoe Condensed", 6F, System.Drawing.FontStyle.Regular);
+ this._scrollableLabel2.Location = new System.Drawing.Point(0, 145);
+ this._scrollableLabel2.Name = "_scrollableLabel2";
+ this._scrollableLabel2.Size = new System.Drawing.Size(240, 121);
+ this._scrollableLabel2.TabIndex = 2;
+ this._scrollableLabel2.Text = "scrollableLabel1";
+ //
+ // _menuItemSubscribe1
+ //
+ this._menuItemSubscribe1.Text = "Subscribe 1";
+ this._menuItemSubscribe1.Click += new System.EventHandler(this._menuItemSubscribe1_Click);
+ //
+ // _menuItemSubscribe2
+ //
+ this._menuItemSubscribe2.Text = "Subscribe 2";
+ this._menuItemSubscribe2.Click += new System.EventHandler(this._menuItemSubscribe2_Click);
+ //
+ // _menuItemGoIdle
+ //
+ this._menuItemGoIdle.Text = "Go Idle";
+ this._menuItemGoIdle.Click += new System.EventHandler(this._menuItemGoIdle_Click);
+ //
+ // Power2TestForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(131F, 131F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
+ this.AutoScroll = true;
+ this.BackColor = System.Drawing.Color.Black;
+ this.ClientSize = new System.Drawing.Size(240, 266);
+ this.Controls.Add(this._scrollableLabel2);
+ this.Controls.Add(this._scrollableLabel1);
+ this.Menu = this.mainMenu1;
+ this.Name = "Power2TestForm";
+ this.Text = "Power2TestForm";
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.MenuItem _menuItemClose;
+ private System.Windows.Forms.MenuItem menuItem2;
+ private System.Windows.Forms.MenuItem _menuItemGoIdle2;
+ private Roam.UI.Controls.ScrollableLabel _scrollableLabel1;
+ private Roam.UI.Controls.ScrollableLabel _scrollableLabel2;
+ private System.Windows.Forms.MenuItem menuItem1;
+ private System.Windows.Forms.MenuItem _menuItemSubscribe1;
+ private System.Windows.Forms.MenuItem _menuItemSubscribe2;
+ private System.Windows.Forms.MenuItem _menuItemGoIdle;
+
+ }
+}
\ No newline at end of file
Added: Trunk/Source/PowerTest/Power2TestForm.cs
===================================================================
--- Trunk/Source/PowerTest/Power2TestForm.cs (rev 0)
+++ Trunk/Source/PowerTest/Power2TestForm.cs 2007-11-29 18:52:10 UTC (rev 107)
@@ -0,0 +1,103 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Text;
+using System.Windows.Forms;
+using Roam.Utils;
+using Roam.UI.Utils;
+using OpenNETCF.WindowsCE;
+
+namespace Roam.Test.Utils
+{
+ public partial class Power2TestForm : Form
+ {
+ private PowerNotificationUIThread _powerNotification1;
+ private PowerNotificationUIThread _powerNotification2;
+
+ public Power2TestForm()
+ {
+ InitializeComponent();
+
+ ClearLogs();
+
+ _powerNotification1 = new PowerNotificationUIThread(this);
+ _powerNotification2 = new PowerNotificationUIThread(this);
+ }
+
+ protected override void OnClosing(CancelEventArgs e)
+ {
+ _powerNotification1.PowerNotificationEvent -= new EventHandler<PowerNotificationEventArgs>(OnPowerNotificationEvent1);
+ _powerNotification2.PowerNotificationEvent -= new EventHandler<PowerNotificationEventArgs>(OnPowerNotificationEvent2);
+
+ base.OnClosing(e);
+ }
+
+ private void OnPowerNotificationEvent1(object sender, PowerNotificationEventArgs e)
+ {
+ _scrollableLabel1.AddLine("Message: " + e.PowerBroadcast.Message);
+ _scrollableLabel1.AddLine("PowerState: " + e.PowerBroadcast.GetSystemPowerStateAsString());
+ }
+
+ private void OnPowerNotificationEvent2(object sender, PowerNotificationEventArgs e)
+ {
+ _scrollableLabel2.AddLine("Message: " + e.PowerBroadcast.Message);
+ _scrollableLabel2.AddLine("PowerState: " + e.PowerBroadcast.GetSystemPowerStateAsString());
+ }
+
+ private void _menuItemClose_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+
+ private void _menuItemGoIdle2_Click(object sender, EventArgs e)
+ {
+ PowerUtils.SetSystemPowerState(IntPtr.Zero, PowerStateFlags.Idle2, PowerUtils.POWER_FORCE);
+ }
+
+ private void _menuItemGoIdle_Click(object sender, EventArgs e)
+ {
+ PowerManagement.SetIdleState();
+ }
+
+ private void menuItem1_Click(object sender, EventArgs e)
+ {
+ ClearLogs();
+ }
+
+ private void ClearLogs()
+ {
+ _scrollableLabel1.Clear();
+ _scrollableLabel2.Clear();
+ }
+
+ private void _menuItemSubscribe1_Click(object sender, EventArgs e)
+ {
+ if (_menuItemSubscribe1.Text.IndexOf("Unsubscribe") != -1)
+ {
+ _menuItemSubscribe1.Text = "Subscribe 1";
+ _powerNotification1.PowerNotificationEvent -= new EventHandler<PowerNotificationEventArgs>(OnPowerNotificationEvent1);
+ }
+ else
+ {
+ _menuItemSubscribe1.Text = "Unsubscribe 1";
+ _powerNotification1.PowerNotificationEvent += new EventHandler<PowerNotificationEventArgs>(OnPowerNotificationEvent1);
+ }
+ }
+
+ private void _menuItemSubscribe2_Click(object sender, EventArgs e)
+ {
+ if (_menuItemSubscribe2.Text.IndexOf("Unsubscribe") != -1)
+ {
+ _menuItemSubscribe2.Text = "Subscribe 2";
+ _powerNotification2.PowerNotificationEvent -= new EventHandler<PowerNotificationEventArgs>(OnPowerNotificationEvent2);
+ }
+ else
+ {
+ _menuItemSubscribe2.Text = "Unsubscribe 2";
+ _powerNotification2.PowerNotificationEvent += new EventHandler<PowerNotificationEventArgs>(OnPowerNotificationEvent2);
+ }
+ }
+ }
+}
\ No newline at end of file
Added: Trunk/Source/PowerTest/Power2TestForm.resx
===================================================================
--- Trunk/Source/PowerTest/Power2TestForm.resx (rev 0)
+++ Trunk/Source/PowerTest/Power2TestForm.resx 2007-11-29 18:52:10 UTC (rev 107)
@@ -0,0 +1,129 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <metadata name="mainMenu1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>17, 17</value>
+ </metadata>
+ <metadata name="$this.FormFactorShadowProperty" xml:space="preserve">
+ <value>Smartphone QVGA</value>
+ </metadata>
+ <metadata name="$this.Skin" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
+</root>
\ No newline at end of file
Added: Trunk/Source/PowerTest/PowerTest.csproj
===================================================================
--- Trunk/Source/PowerTest/PowerTest.csproj (rev 0)
+++ Trunk/Source/PowerTest/PowerTest.csproj 2007-11-29 18:52:10 UTC (rev 107)
@@ -0,0 +1,113 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.50727</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{3B5B1E77-4C54-4C1F-A7CC-127951DA9165}</ProjectGuid>
+ <OutputType>WinExe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>PowerTest</RootNamespace>
+ <AssemblyName>PowerTest</AssemblyName>
+ <ProjectTypeGuids>{B334EBA9-3188-4e79-9C95-ECEFC6669C5A};{4D628B5B-2FBC-4AA6-8C16-197242AEB884};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <PlatformFamilyName>Smartphone</PlatformFamilyName>
+ <PlatformID>BD0CC567-F6FD-4ca3-99D2-063EFDFC0A39</PlatformID>
+ <OSVersion>5.01</OSVersion>
+ <DeployDirSuffix>\Storage Card\Program Files\PowerTest</DeployDirSuffix>
+ <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
+ <FormFactorID>
+ </FormFactorID>
+ <DeployDirPrefix>\</DeployDirPrefix>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE;$(PlatformFamilyName)</DefineConstants>
+ <NoStdLib>true</NoStdLib>
+ <NoConfig>true</NoConfig>
+ <ErrorReport>prompt</ErrorReport>
+ <FileAlignment>512</FileAlignment>
+ <WarningLevel>4</WarningLevel>
+ <GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE;$(PlatformFamilyName)</DefineConstants>
+ <NoStdLib>true</NoStdLib>
+ <NoConfig>true</NoConfig>
+ <ErrorReport>prompt</ErrorReport>
+ <FileAlignment>512</FileAlignment>
+ <WarningLevel>4</WarningLevel>
+ <GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="mscorlib" />
+ <Reference Include="OpenNETCF.WindowsCE, Version=2.0.0.0, Culture=neutral, PublicKeyToken=e60dbea84bb431b7, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\Library\Release\OpenNETCF.WindowsCE.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Windows.Forms" />
+ <Reference Include="System.Xml" />
+ <Reference Include="OpenNETCF" />
+ <Reference Include="OpenNETCF.Data" />
+ <Reference Include="OpenNETCF.Drawing" />
+ <Reference Include="OpenNETCF.Windows.Forms" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Power2TestForm.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Power2TestForm.Designer.cs">
+ <DependentUpon>Power2TestForm.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <EmbeddedResource Include="Power2TestForm.resx">
+ <DependentUpon>Power2TestForm.cs</DependentUpon>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Properties\Resources.resx">
+ <Generator>ResXFileCodeGenerator</Generator>
+ <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ <Compile Include="Properties\Resources.Designer.cs">
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Resources.resx</DependentUpon>
+ <DesignTime>True</DesignTime>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Roam.UI\Roam.UI.csproj">
+ <Project>{DAC64B51-A973-4AB8-9B3D-6548EDC6E867}</Project>
+ <Name>Roam.UI</Name>
+ </ProjectReference>
+ <ProjectReference Include="..\Roam\Roam.csproj">
+ <Project>{2478CBD2-0FCB-443A-ABBE-4D6396A8E689}</Project>
+ <Name>Roam</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Condition="'$(TargetFrameworkVersion)' == 'v1.0'" Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.v1.targets" />
+ <Import Condition="'$(TargetFrameworkVersion)' == 'v2.0'" Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets" />
+ <ProjectExtensions>
+ <VisualStudio>
+ <FlavorProperties GUID="{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}">
+ <HostingProcess disable="1" />
+ </FlavorProperties>
+ </VisualStudio>
+ </ProjectExtensions>
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
\ No newline at end of file
Added: Trunk/Source/PowerTest/PowerTest.csproj.user
===================================================================
--- Trunk/Source/PowerTest/PowerTest.csproj.user (rev 0)
+++ Trunk/Source/PowerTest/PowerTest.csproj.user 2007-11-29 18:52:10 UTC (rev 107)
@@ -0,0 +1,5 @@
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <DeployDeviceID>BD0CC567-F6FD-4ca3-99D2-063EFDFC0A39d6518ffb-710f-11d3-99f2-00105a0df099</DeployDeviceID>
+ </PropertyGroup>
+</Project>
\ No newline at end of file
Added: Trunk/Source/PowerTest/Program.cs
===================================================================
--- Trunk/Source/PowerTest/Program.cs (rev 0)
+++ Trunk/Source/PowerTest/Program.cs 2007-11-29 18:52:10 UTC (rev 107)
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.Windows.Forms;
+using Roam.Test.Utils;
+
+namespace PowerTest
+{
+ static class Program
+ {
+ /// <summary>
+ /// The main entry point for the application.
+ /// </summary>
+ [MTAThread]
+ static void Main()
+ {
+ Application.Run(new Power2TestForm());
+ }
+ }
+}
\ No newline at end of file
Added: Trunk/Source/PowerTest/Properties/AssemblyInfo.cs
===================================================================
--- Trunk/Source/PowerTest/Properties/AssemblyInfo.cs (rev 0)
+++ Trunk/Source/PowerTest/Properties/AssemblyInfo.cs 2007-11-29 18:52:10 UTC (rev 107)
@@ -0,0 +1,33 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// 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("PowerTest")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("PowerTest")]
+[assembly: AssemblyCopyright("Copyright © 2007")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("e12e52a1-3849-44fb-9df6-9b70b668899a")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+[assembly: AssemblyVersion("1.0.0.0")]
+
Added: Trunk/Source/PowerTest/Properties/Resources.Designer.cs
===================================================================
--- Trunk/Source/PowerTest/Properties/Resources.Designer.cs (rev 0)
+++ Trunk/Source/PowerTest/Properties/Resources.Designer.cs 2007-11-29 18:52:10 UTC (rev 107)
@@ -0,0 +1,60 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by a tool.
+// Runtime Version:2.0.50727.832
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace PowerTest.Properties {
+ using System;
+
+
+ /// <summary>
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ /// </summary>
+ // 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.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal class Resources {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ internal Resources() {
+ }
+
+ /// <summary>
+ /// Returns the cached ResourceManager instance used by this class.
+ /// </summary>
+ [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("PowerTest.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ /// <summary>
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ /// </summary>
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+ }
+}
Added: Trunk/Source/PowerTest/Properties/Resources.resx
===================================================================
--- Trunk/Source/PowerTest/Properties/Resources.resx (rev 0)
+++ Trunk/Source/PowerTest/Properties/Resources.resx 2007-11-29 18:52:10 UTC (rev 107)
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root>
\ No newline at end of file
Modified: Trunk/Source/Roam.sln
===================================================================
--- Trunk/Source/Roam.sln 2007-11-29 08:31:22 UTC (rev 106)
+++ Trunk/Source/Roam.sln 2007-11-29 18:52:10 UTC (rev 107)
@@ -20,6 +20,8 @@
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PowerTest", "PowerTest\PowerTest.csproj", "{3B5B1E77-4C54-4C1F-A7CC-127951DA9165}"
EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{2C7DA866-BB34-4F97-98E9-A5CD2DB49090}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -148,4 +150,7 @@
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
+ GlobalSection(NestedProjects) = preSolution
+ {3B5B1E77-4C54-4C1F-A7CC-127951DA9165} = {2C7DA866-BB34-4F97-98E9-A5CD2DB49090}
+ EndGlobalSection
EndGlobal
Modified: Trunk/Source/Roam.suo
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|