roam-commit Mailing List for Roam, a Windows Mobile library
Status: Alpha
Brought to you by:
jonfroehlich
You can subscribe to this list here.
| 2007 |
Jan
|
Feb
|
Mar
(9) |
Apr
(10) |
May
|
Jun
|
Jul
(10) |
Aug
(1) |
Sep
(7) |
Oct
(4) |
Nov
(6) |
Dec
(3) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2008 |
Jan
(1) |
Feb
(9) |
Mar
(11) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
| 2009 |
Jan
|
Feb
|
Mar
(1) |
Apr
(2) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <jon...@us...> - 2009-06-02 02:50:30
|
Revision: 138
http://roam.svn.sourceforge.net/roam/?rev=138&view=rev
Author: jonfroehlich
Date: 2009-06-02 01:37:07 +0000 (Tue, 02 Jun 2009)
Log Message:
-----------
added auto-upgrade to SQL CE 3.5 database in SqlCeConnectionManager
Modified Paths:
--------------
Trunk/Source/Roam.SqlCe/SqlCeConnectionManager.cs
Added Paths:
-----------
Trunk/Source/Roam.Common/Roam.Common.csproj.user
Trunk/Source/Roam.SqlCe/Roam.SqlCe.csproj.user
Added: Trunk/Source/Roam.Common/Roam.Common.csproj.user
===================================================================
--- Trunk/Source/Roam.Common/Roam.Common.csproj.user (rev 0)
+++ Trunk/Source/Roam.Common/Roam.Common.csproj.user 2009-06-02 01:37:07 UTC (rev 138)
@@ -0,0 +1,5 @@
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <DeployDeviceID>BEDE20EF-6548-413E-943F-1E87FEC249FA</DeployDeviceID>
+ </PropertyGroup>
+</Project>
\ No newline at end of file
Added: Trunk/Source/Roam.SqlCe/Roam.SqlCe.csproj.user
===================================================================
--- Trunk/Source/Roam.SqlCe/Roam.SqlCe.csproj.user (rev 0)
+++ Trunk/Source/Roam.SqlCe/Roam.SqlCe.csproj.user 2009-06-02 01:37:07 UTC (rev 138)
@@ -0,0 +1,5 @@
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <DeployDeviceID>BEDE20EF-6548-413E-943F-1E87FEC249FA</DeployDeviceID>
+ </PropertyGroup>
+</Project>
\ No newline at end of file
Modified: Trunk/Source/Roam.SqlCe/SqlCeConnectionManager.cs
===================================================================
--- Trunk/Source/Roam.SqlCe/SqlCeConnectionManager.cs 2009-04-29 12:37:17 UTC (rev 137)
+++ Trunk/Source/Roam.SqlCe/SqlCeConnectionManager.cs 2009-06-02 01:37:07 UTC (rev 138)
@@ -422,7 +422,17 @@
if (sqlConn.State == System.Data.ConnectionState.Closed)
{
_log.DebugFormat("Open : The connection={0} is closed, opening now", sqlConn);
- sqlConn.Open();
+ try
+ {
+ sqlConn.Open();
+ }
+ catch (SqlCeInvalidDatabaseFormatException sqlException)
+ {
+ SqlCeEngine sqlCeEngine = new SqlCeEngine(_connectionString);
+ sqlCeEngine.Upgrade();
+ sqlCeEngine.Dispose();
+ sqlConn.Open();
+ }
}
//most efficient to check for this flag before logging
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st...@us...> - 2009-04-29 12:37:29
|
Revision: 137
http://roam.svn.sourceforge.net/roam/?rev=137&view=rev
Author: stumpp
Date: 2009-04-29 12:37:17 +0000 (Wed, 29 Apr 2009)
Log Message:
-----------
- Update to SQLCF35
- Update to VS2008
Modified Paths:
--------------
Trunk/Source/Roam/Roam.csproj
Trunk/Source/Roam.Common/Roam.Common.csproj
Trunk/Source/Roam.Resources/Roam.Resources.csproj
Trunk/Source/Roam.SqlCe/Roam.SqlCe.csproj
Trunk/Source/Roam.Test/MainForm.resx
Trunk/Source/Roam.Test/Media/SoundLoopPlayerTest.resx
Trunk/Source/Roam.Test/Properties/Resources.Designer.cs
Trunk/Source/Roam.Test/Properties/Resources.resx
Trunk/Source/Roam.Test/Roam.Test.csproj
Trunk/Source/Roam.Test/Sandbox/AssemblyTest.resx
Trunk/Source/Roam.Test/Sandbox/ColorsTest.resx
Trunk/Source/Roam.Test/Sandbox/DateTimePickerTest.resx
Trunk/Source/Roam.Test/Sandbox/EnumWindowsTest.resx
Trunk/Source/Roam.Test/Sandbox/ExceptionOverheadTest.resx
Trunk/Source/Roam.Test/Sandbox/Gradient/GradientFillTest.resx
Trunk/Source/Roam.Test/Sandbox/MonthCalendarTest.resx
Trunk/Source/Roam.Test/Sandbox/PhoneButtonManagerTest.resx
Trunk/Source/Roam.Test/Sandbox/PhoneCallTalkingTest.resx
Trunk/Source/Roam.Test/Sandbox/PhoneStateTest.resx
Trunk/Source/Roam.Test/Sandbox/PingTest.resx
Trunk/Source/Roam.Test/Sandbox/RegisterHotKeyTest.resx
Trunk/Source/Roam.Test/Sandbox/SignalStrengthTest.resx
Trunk/Source/Roam.Test/Sandbox/SmsAccountTest.resx
Trunk/Source/Roam.Test/Sandbox/SmsSendTest.resx
Trunk/Source/Roam.Test/Sandbox/StarItemTest.resx
Trunk/Source/Roam.Test/Sandbox/TimeTest.resx
Trunk/Source/Roam.Test/Sandbox/TopMostFormTest.resx
Trunk/Source/Roam.Test/Sandbox/XmlSerializationTest.resx
Trunk/Source/Roam.Test/SqlCe/SqlCeConnectionManagerTest.resx
Trunk/Source/Roam.Test/UI/Controls/AlphaBlendTest.resx
Trunk/Source/Roam.Test/UI/Controls/CalendarTest.resx
Trunk/Source/Roam.Test/UI/Controls/CameraMediaSnifferTest.resx
Trunk/Source/Roam.Test/UI/Controls/CameraPhotoCapturedTest.resx
Trunk/Source/Roam.Test/UI/Controls/CheckedListBoxCacheTest.resx
Trunk/Source/Roam.Test/UI/Controls/CheckedListBoxTest.resx
Trunk/Source/Roam.Test/UI/Controls/FontTest.resx
Trunk/Source/Roam.Test/UI/Controls/FormTest.resx
Trunk/Source/Roam.Test/UI/Controls/GradientStressTest.resx
Trunk/Source/Roam.Test/UI/Controls/GradientTest.resx
Trunk/Source/Roam.Test/UI/Controls/IImageButtonTest.resx
Trunk/Source/Roam.Test/UI/Controls/ImageButtonTest.resx
Trunk/Source/Roam.Test/UI/Controls/ImageListBoxTest.resx
Trunk/Source/Roam.Test/UI/Controls/ImageMapTest.resx
Trunk/Source/Roam.Test/UI/Controls/KeyListItemFilterForm.resx
Trunk/Source/Roam.Test/UI/Controls/ListViewTest.resx
Trunk/Source/Roam.Test/UI/Controls/OrthogonalGradientTest.resx
Trunk/Source/Roam.Test/UI/Controls/PhotoCameraControlTest.resx
Trunk/Source/Roam.Test/UI/Controls/RadioListBoxTest.resx
Trunk/Source/Roam.Test/UI/Controls/RadioListBoxTest2.resx
Trunk/Source/Roam.Test/UI/Controls/RoundedRectTest.resx
Trunk/Source/Roam.Test/UI/Controls/RoundedRectTest2.resx
Trunk/Source/Roam.Test/UI/Controls/ScreenShotTest.resx
Trunk/Source/Roam.Test/UI/Controls/ScrollableLabelTest.resx
Trunk/Source/Roam.Test/UI/Controls/ScrollableLabelTest2.resx
Trunk/Source/Roam.Test/UI/Controls/SmartListBoxTest.resx
Trunk/Source/Roam.Test/UI/Controls/SystemColorTest.resx
Trunk/Source/Roam.Test/UI/Controls/TabControlTestPanel2.resx
Trunk/Source/Roam.Test/UI/Controls/TabControlTestPanel3.resx
Trunk/Source/Roam.Test/UI/Controls/TabControlTestPanel4.resx
Trunk/Source/Roam.Test/UI/Controls/TabControlTestPanel5.resx
Trunk/Source/Roam.Test/UI/Controls/TextBoxFilteredListTest.resx
Trunk/Source/Roam.Test/UI/Controls/TextBoxTest.resx
Trunk/Source/Roam.Test/UI/Controls/WallpaperTest.resx
Trunk/Source/Roam.Test/Utils/HookTest.resx
Trunk/Source/Roam.Test/Utils/IdleTimeForm.resx
Trunk/Source/Roam.Test/Utils/InsetsForm.resx
Trunk/Source/Roam.Test/Utils/KeySnifferTest.resx
Trunk/Source/Roam.Test/Utils/KeySniffersTest.resx
Trunk/Source/Roam.Test/Utils/MeasureStringTest.resx
Trunk/Source/Roam.Test/Utils/Power2TestForm.resx
Trunk/Source/Roam.Test/Utils/PowerTestForm.resx
Trunk/Source/Roam.Test/Utils/StorageCardUtilsTest.resx
Trunk/Source/Roam.Test/Utils/TextBoxForm.resx
Trunk/Source/Roam.Test.Desktop/Properties/Resources.Designer.cs
Trunk/Source/Roam.Test.Desktop/Properties/Settings.Designer.cs
Trunk/Source/Roam.Test.Desktop/Roam.Test.Desktop.csproj
Trunk/Source/Roam.UI/Controls/AudioRecorder.resx
Trunk/Source/Roam.UI/Forms/SplashForm.resx
Trunk/Source/Roam.UI/Roam.UI.csproj
Trunk/Source/Roam.Win32/Roam.Win32.vcproj
Trunk/Source/Roam.sln
Trunk/Source/Sandbox.Roam/Sandbox.Roam.csproj
Removed Paths:
-------------
Trunk/Source/PowerTest/PowerTest.csproj.user
Trunk/Source/Roam/Roam.csproj.user
Trunk/Source/Roam/Roam.sln
Trunk/Source/Roam/Roam_VS2008.csproj
Trunk/Source/Roam.Common/Roam.Common.csproj.user
Trunk/Source/Roam.Common/Roam_VS2008.Common.csproj
Trunk/Source/Roam.Resources/Roam.Resources.csproj.user
Trunk/Source/Roam.Resources/Roam_VS2008.Resources.csproj
Trunk/Source/Roam.SqlCe/Roam.SqlCe.csproj.user
Trunk/Source/Roam.SqlCe/Roam_VS2008.SqlCe.csproj
Trunk/Source/Roam.Test/Roam.Test.csproj.user
Trunk/Source/Roam.Test/Roam_VS2008.Test.csproj
Trunk/Source/Roam.Test.Desktop/Roam_VS2008.Test.Desktop.csproj
Trunk/Source/Roam.UI/Roam.UI.csproj.user
Trunk/Source/Roam.UI/Roam_VS2008.UI.csproj
Trunk/Source/Roam.Win32/Roam.Win32.vcproj.JFROLAP.jfroehli.user
Trunk/Source/Roam.Win32/Roam_VS2008.Win32.vcproj
Trunk/Source/Roam_VS2008.sln
Trunk/Source/Sandbox.Roam/Sandbox.Roam.csproj.user
Trunk/Source/Sandbox.Roam/Sandbox_VS2008.Roam.csproj
Deleted: Trunk/Source/PowerTest/PowerTest.csproj.user
===================================================================
--- Trunk/Source/PowerTest/PowerTest.csproj.user 2009-04-27 12:29:46 UTC (rev 136)
+++ Trunk/Source/PowerTest/PowerTest.csproj.user 2009-04-29 12:37:17 UTC (rev 137)
@@ -1,5 +0,0 @@
-<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
Modified: Trunk/Source/Roam/Roam.csproj
===================================================================
--- Trunk/Source/Roam/Roam.csproj 2009-04-27 12:29:46 UTC (rev 136)
+++ Trunk/Source/Roam/Roam.csproj 2009-04-29 12:37:17 UTC (rev 137)
@@ -1,4 +1,4 @@
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -17,6 +17,12 @@
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<FormFactorID>
</FormFactorID>
+ <FileUpgradeFlags>
+ </FileUpgradeFlags>
+ <OldToolsVersion>2.0</OldToolsVersion>
+ <NativePlatformName>Windows Mobile 5.0 Smartphone SDK</NativePlatformName>
+ <UpgradeBackupLocation>
+ </UpgradeBackupLocation>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -113,4 +119,5 @@
<Target Name="AfterBuild">
</Target>
-->
+ <Import Condition="'$(TargetFrameworkVersion)' == 'v3.5'" Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets" />
</Project>
\ No newline at end of file
Deleted: Trunk/Source/Roam/Roam.csproj.user
===================================================================
--- Trunk/Source/Roam/Roam.csproj.user 2009-04-27 12:29:46 UTC (rev 136)
+++ Trunk/Source/Roam/Roam.csproj.user 2009-04-29 12:37:17 UTC (rev 137)
@@ -1,5 +0,0 @@
-<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <DeployDeviceID>BEDE20EF-6548-413E-943F-1E87FEC249FA</DeployDeviceID>
- </PropertyGroup>
-</Project>
\ No newline at end of file
Deleted: Trunk/Source/Roam/Roam.sln
===================================================================
--- Trunk/Source/Roam/Roam.sln 2009-04-27 12:29:46 UTC (rev 136)
+++ Trunk/Source/Roam/Roam.sln 2009-04-29 12:37:17 UTC (rev 137)
@@ -1,130 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 9.00
-# Visual Studio 2005
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Roam", "Roam.csproj", "{2478CBD2-0FCB-443A-ABBE-4D6396A8E689}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Roam.Common", "..\Roam.Common\Roam.Common.csproj", "{D519F656-5AB2-4429-8883-2497C8700FDA}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Roam.Resources", "..\Roam.Resources\Roam.Resources.csproj", "{731A7107-FE6C-4172-99FC-1866075DB63C}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Roam.Test", "..\Roam.Test\Roam.Test.csproj", "{F2F02B32-8567-43E6-8A4B-ED79E6EC8725}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Roam.UI", "..\Roam.UI\Roam.UI.csproj", "{DAC64B51-A973-4AB8-9B3D-6548EDC6E867}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Roam.Win32", "..\Roam.Win32\Roam.Win32.vcproj", "{90E4353B-5F69-48EB-96EE-04494865DE3F}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sandbox.Roam", "..\..\Sandbox\Sandbox.Roam\Sandbox.Roam.csproj", "{19CDE0E2-71D7-4F81-841D-5A89F709E3D9}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Roam.Test.Desktop", "..\Roam.Test.Desktop\Roam.Test.Desktop.csproj", "{2CA48F26-E669-4193-BAE4-49CCFD982F63}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Debug|Mixed Platforms = Debug|Mixed Platforms
- Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I) = Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
- Release|Any CPU = Release|Any CPU
- Release|Mixed Platforms = Release|Mixed Platforms
- Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I) = Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {2478CBD2-0FCB-443A-ABBE-4D6396A8E689}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {2478CBD2-0FCB-443A-ABBE-4D6396A8E689}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {2478CBD2-0FCB-443A-ABBE-4D6396A8E689}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {2478CBD2-0FCB-443A-ABBE-4D6396A8E689}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {2478CBD2-0FCB-443A-ABBE-4D6396A8E689}.Debug|Mixed Platforms.Deploy.0 = Debug|Any CPU
- {2478CBD2-0FCB-443A-ABBE-4D6396A8E689}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Debug|Any CPU
- {2478CBD2-0FCB-443A-ABBE-4D6396A8E689}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {2478CBD2-0FCB-443A-ABBE-4D6396A8E689}.Release|Any CPU.Build.0 = Release|Any CPU
- {2478CBD2-0FCB-443A-ABBE-4D6396A8E689}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {2478CBD2-0FCB-443A-ABBE-4D6396A8E689}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {2478CBD2-0FCB-443A-ABBE-4D6396A8E689}.Release|Mixed Platforms.Deploy.0 = Release|Any CPU
- {2478CBD2-0FCB-443A-ABBE-4D6396A8E689}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Release|Any CPU
- {D519F656-5AB2-4429-8883-2497C8700FDA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {D519F656-5AB2-4429-8883-2497C8700FDA}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {D519F656-5AB2-4429-8883-2497C8700FDA}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {D519F656-5AB2-4429-8883-2497C8700FDA}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {D519F656-5AB2-4429-8883-2497C8700FDA}.Debug|Mixed Platforms.Deploy.0 = Debug|Any CPU
- {D519F656-5AB2-4429-8883-2497C8700FDA}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Debug|Any CPU
- {D519F656-5AB2-4429-8883-2497C8700FDA}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {D519F656-5AB2-4429-8883-2497C8700FDA}.Release|Any CPU.Build.0 = Release|Any CPU
- {D519F656-5AB2-4429-8883-2497C8700FDA}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {D519F656-5AB2-4429-8883-2497C8700FDA}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {D519F656-5AB2-4429-8883-2497C8700FDA}.Release|Mixed Platforms.Deploy.0 = Release|Any CPU
- {D519F656-5AB2-4429-8883-2497C8700FDA}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Release|Any CPU
- {731A7107-FE6C-4172-99FC-1866075DB63C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {731A7107-FE6C-4172-99FC-1866075DB63C}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {731A7107-FE6C-4172-99FC-1866075DB63C}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {731A7107-FE6C-4172-99FC-1866075DB63C}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {731A7107-FE6C-4172-99FC-1866075DB63C}.Debug|Mixed Platforms.Deploy.0 = Debug|Any CPU
- {731A7107-FE6C-4172-99FC-1866075DB63C}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Debug|Any CPU
- {731A7107-FE6C-4172-99FC-1866075DB63C}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {731A7107-FE6C-4172-99FC-1866075DB63C}.Release|Any CPU.Build.0 = Release|Any CPU
- {731A7107-FE6C-4172-99FC-1866075DB63C}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {731A7107-FE6C-4172-99FC-1866075DB63C}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {731A7107-FE6C-4172-99FC-1866075DB63C}.Release|Mixed Platforms.Deploy.0 = Release|Any CPU
- {731A7107-FE6C-4172-99FC-1866075DB63C}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Release|Any CPU
- {F2F02B32-8567-43E6-8A4B-ED79E6EC8725}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {F2F02B32-8567-43E6-8A4B-ED79E6EC8725}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {F2F02B32-8567-43E6-8A4B-ED79E6EC8725}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
- {F2F02B32-8567-43E6-8A4B-ED79E6EC8725}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {F2F02B32-8567-43E6-8A4B-ED79E6EC8725}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {F2F02B32-8567-43E6-8A4B-ED79E6EC8725}.Debug|Mixed Platforms.Deploy.0 = Debug|Any CPU
- {F2F02B32-8567-43E6-8A4B-ED79E6EC8725}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Debug|Any CPU
- {F2F02B32-8567-43E6-8A4B-ED79E6EC8725}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {F2F02B32-8567-43E6-8A4B-ED79E6EC8725}.Release|Any CPU.Build.0 = Release|Any CPU
- {F2F02B32-8567-43E6-8A4B-ED79E6EC8725}.Release|Any CPU.Deploy.0 = Release|Any CPU
- {F2F02B32-8567-43E6-8A4B-ED79E6EC8725}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {F2F02B32-8567-43E6-8A4B-ED79E6EC8725}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {F2F02B32-8567-43E6-8A4B-ED79E6EC8725}.Release|Mixed Platforms.Deploy.0 = Release|Any CPU
- {F2F02B32-8567-43E6-8A4B-ED79E6EC8725}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Release|Any CPU
- {DAC64B51-A973-4AB8-9B3D-6548EDC6E867}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {DAC64B51-A973-4AB8-9B3D-6548EDC6E867}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {DAC64B51-A973-4AB8-9B3D-6548EDC6E867}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {DAC64B51-A973-4AB8-9B3D-6548EDC6E867}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {DAC64B51-A973-4AB8-9B3D-6548EDC6E867}.Debug|Mixed Platforms.Deploy.0 = Debug|Any CPU
- {DAC64B51-A973-4AB8-9B3D-6548EDC6E867}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Debug|Any CPU
- {DAC64B51-A973-4AB8-9B3D-6548EDC6E867}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {DAC64B51-A973-4AB8-9B3D-6548EDC6E867}.Release|Any CPU.Build.0 = Release|Any CPU
- {DAC64B51-A973-4AB8-9B3D-6548EDC6E867}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {DAC64B51-A973-4AB8-9B3D-6548EDC6E867}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {DAC64B51-A973-4AB8-9B3D-6548EDC6E867}.Release|Mixed Platforms.Deploy.0 = Release|Any CPU
- {DAC64B51-A973-4AB8-9B3D-6548EDC6E867}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Release|Any CPU
- {90E4353B-5F69-48EB-96EE-04494865DE3F}.Debug|Any CPU.ActiveCfg = Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
- {90E4353B-5F69-48EB-96EE-04494865DE3F}.Debug|Mixed Platforms.ActiveCfg = Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
- {90E4353B-5F69-48EB-96EE-04494865DE3F}.Debug|Mixed Platforms.Build.0 = Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
- {90E4353B-5F69-48EB-96EE-04494865DE3F}.Debug|Mixed Platforms.Deploy.0 = Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
- {90E4353B-5F69-48EB-96EE-04494865DE3F}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
- {90E4353B-5F69-48EB-96EE-04494865DE3F}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
- {90E4353B-5F69-48EB-96EE-04494865DE3F}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
- {90E4353B-5F69-48EB-96EE-04494865DE3F}.Release|Any CPU.ActiveCfg = Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
- {90E4353B-5F69-48EB-96EE-04494865DE3F}.Release|Mixed Platforms.ActiveCfg = Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
- {90E4353B-5F69-48EB-96EE-04494865DE3F}.Release|Mixed Platforms.Build.0 = Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
- {90E4353B-5F69-48EB-96EE-04494865DE3F}.Release|Mixed Platforms.Deploy.0 = Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
- {90E4353B-5F69-48EB-96EE-04494865DE3F}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
- {90E4353B-5F69-48EB-96EE-04494865DE3F}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
- {90E4353B-5F69-48EB-96EE-04494865DE3F}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
- {19CDE0E2-71D7-4F81-841D-5A89F709E3D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {19CDE0E2-71D7-4F81-841D-5A89F709E3D9}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {19CDE0E2-71D7-4F81-841D-5A89F709E3D9}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {19CDE0E2-71D7-4F81-841D-5A89F709E3D9}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {19CDE0E2-71D7-4F81-841D-5A89F709E3D9}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Debug|Any CPU
- {19CDE0E2-71D7-4F81-841D-5A89F709E3D9}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {19CDE0E2-71D7-4F81-841D-5A89F709E3D9}.Release|Any CPU.Build.0 = Release|Any CPU
- {19CDE0E2-71D7-4F81-841D-5A89F709E3D9}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {19CDE0E2-71D7-4F81-841D-5A89F709E3D9}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {19CDE0E2-71D7-4F81-841D-5A89F709E3D9}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Release|Any CPU
- {2CA48F26-E669-4193-BAE4-49CCFD982F63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {2CA48F26-E669-4193-BAE4-49CCFD982F63}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {2CA48F26-E669-4193-BAE4-49CCFD982F63}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {2CA48F26-E669-4193-BAE4-49CCFD982F63}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {2CA48F26-E669-4193-BAE4-49CCFD982F63}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Debug|Any CPU
- {2CA48F26-E669-4193-BAE4-49CCFD982F63}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {2CA48F26-E669-4193-BAE4-49CCFD982F63}.Release|Any CPU.Build.0 = Release|Any CPU
- {2CA48F26-E669-4193-BAE4-49CCFD982F63}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {2CA48F26-E669-4193-BAE4-49CCFD982F63}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {2CA48F26-E669-4193-BAE4-49CCFD982F63}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
Deleted: Trunk/Source/Roam/Roam_VS2008.csproj
===================================================================
--- Trunk/Source/Roam/Roam_VS2008.csproj 2009-04-27 12:29:46 UTC (rev 136)
+++ Trunk/Source/Roam/Roam_VS2008.csproj 2009-04-29 12:37:17 UTC (rev 137)
@@ -1,123 +0,0 @@
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.21022</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{2478CBD2-0FCB-443A-ABBE-4D6396A8E689}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Roam</RootNamespace>
- <AssemblyName>Roam</AssemblyName>
- <ProjectTypeGuids>{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>Roam</DeployDirSuffix>
- <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
- <FormFactorID>
- </FormFactorID>
- <FileUpgradeFlags>
- </FileUpgradeFlags>
- <OldToolsVersion>2.0</OldToolsVersion>
- <NativePlatformName>Windows Mobile 5.0 Smartphone SDK</NativePlatformName>
- <UpgradeBackupLocation>
- </UpgradeBackupLocation>
- </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="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\Library\Release\log4net.dll</HintPath>
- </Reference>
- <Reference Include="Microsoft.WindowsMobile, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
- <Reference Include="Microsoft.WindowsMobile.PocketOutlook, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
- <Reference Include="Microsoft.WindowsMobile.Status, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
- <Reference Include="mscorlib" />
- <Reference Include="OpenNETCF, Version=2.0.0.0, Culture=neutral, PublicKeyToken=e60dbea84bb431b7, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\Library\Release\OpenNETCF.dll</HintPath>
- </Reference>
- <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="OpenNETCF.WindowsMobile, Version=2.0.0.0, Culture=neutral, PublicKeyToken=e60dbea84bb431b7, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\Library\Release\OpenNETCF.WindowsMobile.dll</HintPath>
- </Reference>
- <Reference Include="System" />
- <Reference Include="System.Data" />
- <Reference Include="System.Xml" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Media\CameraMediaCapturedSniffer.cs" />
- <Compile Include="Media\CyclePlayer.cs" />
- <Compile Include="Media\LedPlayer.cs" />
- <Compile Include="Media\Player.cs" />
- <Compile Include="Media\SoundLoopPlayer.cs" />
- <Compile Include="Media\VibrationPlayer.cs" />
- <Compile Include="PocketOutlook\Sms.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="Utils\DeviceUtils.cs" />
- <Compile Include="Utils\PerformanceUtils.cs" />
- <Compile Include="Utils\PowerNotification.cs" />
- <Compile Include="Utils\PowerUtils.cs" />
- <Compile Include="Utils\ProcessUtils.cs" />
- <Compile Include="Utils\StorageCardUtils.cs" />
- <Compile Include="Utils\SystemUtils.cs" />
- <Compile Include="Utils\ThreadUtils.cs" />
- <Compile Include="Utils\WindowsHooks.cs" />
- <Compile Include="Utils\WindowsConstants.cs" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\Roam.Common\Roam_VS2008.Common.csproj">
- <Project>{D519F656-5AB2-4429-8883-2497C8700FDA}</Project>
- <Name>Roam_VS2008.Common</Name>
- </ProjectReference>
- </ItemGroup>
- <ItemGroup>
- <EmbeddedResource Include="Resources\Sounds\alert.wav" />
- </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>
- -->
- <Import Condition="'$(TargetFrameworkVersion)' == 'v3.5'" Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets" />
-</Project>
\ No newline at end of file
Modified: Trunk/Source/Roam.Common/Roam.Common.csproj
===================================================================
--- Trunk/Source/Roam.Common/Roam.Common.csproj 2009-04-27 12:29:46 UTC (rev 136)
+++ Trunk/Source/Roam.Common/Roam.Common.csproj 2009-04-29 12:37:17 UTC (rev 137)
@@ -1,4 +1,4 @@
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -17,6 +17,12 @@
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<FormFactorID>
</FormFactorID>
+ <FileUpgradeFlags>
+ </FileUpgradeFlags>
+ <OldToolsVersion>2.0</OldToolsVersion>
+ <NativePlatformName>Windows Mobile 5.0 Smartphone SDK</NativePlatformName>
+ <UpgradeBackupLocation>
+ </UpgradeBackupLocation>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -121,4 +127,5 @@
<Target Name="AfterBuild">
</Target>
-->
+ <Import Condition="'$(TargetFrameworkVersion)' == 'v3.5'" Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets" />
</Project>
\ No newline at end of file
Deleted: Trunk/Source/Roam.Common/Roam.Common.csproj.user
===================================================================
--- Trunk/Source/Roam.Common/Roam.Common.csproj.user 2009-04-27 12:29:46 UTC (rev 136)
+++ Trunk/Source/Roam.Common/Roam.Common.csproj.user 2009-04-29 12:37:17 UTC (rev 137)
@@ -1,5 +0,0 @@
-<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <DeployDeviceID>BEDE20EF-6548-413E-943F-1E87FEC249FA</DeployDeviceID>
- </PropertyGroup>
-</Project>
\ No newline at end of file
Deleted: Trunk/Source/Roam.Common/Roam_VS2008.Common.csproj
===================================================================
--- Trunk/Source/Roam.Common/Roam_VS2008.Common.csproj 2009-04-27 12:29:46 UTC (rev 136)
+++ Trunk/Source/Roam.Common/Roam_VS2008.Common.csproj 2009-04-29 12:37:17 UTC (rev 137)
@@ -1,131 +0,0 @@
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.21022</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{D519F656-5AB2-4429-8883-2497C8700FDA}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Roam.Common</RootNamespace>
- <AssemblyName>Roam.Common</AssemblyName>
- <ProjectTypeGuids>{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>Roam.Common</DeployDirSuffix>
- <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
- <FormFactorID>
- </FormFactorID>
- <FileUpgradeFlags>
- </FileUpgradeFlags>
- <OldToolsVersion>2.0</OldToolsVersion>
- <NativePlatformName>Windows Mobile 5.0 Smartphone SDK</NativePlatformName>
- <UpgradeBackupLocation>
- </UpgradeBackupLocation>
- </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="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\Library\Release\log4net.dll</HintPath>
- </Reference>
- <Reference Include="mscorlib" />
- <Reference Include="System" />
- <Reference Include="System.Data" />
- <Reference Include="System.Drawing" />
- <Reference Include="System.Windows.Forms" />
- <Reference Include="System.Xml" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Collections\BfsTreeEnumerator.cs" />
- <Compile Include="Collections\BfsTreeWalker.cs" />
- <Compile Include="Collections\Buffer.cs" />
- <Compile Include="Collections\DfsTreeEnumerator.cs" />
- <Compile Include="Collections\DfsTreeWalker.cs" />
- <Compile Include="Collections\HashSet.cs" />
- <Compile Include="Collections\PriorityQueue.cs" />
- <Compile Include="Collections\ReadOnlyHashtable.cs" />
- <Compile Include="Collections\ReverseComparer.cs" />
- <Compile Include="Collections\ReverseEnumerator.cs" />
- <Compile Include="Collections\Tree.cs" />
- <Compile Include="Collections\TreeBranchEnumerator.cs" />
- <Compile Include="Collections\TreeBranchWalker.cs" />
- <Compile Include="Collections\TreeEnumerator.cs" />
- <Compile Include="Collections\TreeNode.cs" />
- <Compile Include="Collections\TreeWalker.cs" />
- <Compile Include="Collections\WalkUpTreeBranchEnumerator.cs" />
- <Compile Include="Collections\WalkUpTreeBranch.cs" />
- <Compile Include="Utils\DebugWriteAppender.cs" />
- <Compile Include="Utils\DirectoryUtils.cs" />
- <Compile Include="Utils\EnumUtils.cs" />
- <Compile Include="Utils\ErrorUtils.cs" />
- <Compile Include="Utils\FileUtils.cs" />
- <Compile Include="Utils\ImagingUtils.cs" />
- <Compile Include="Utils\MeasurementUtils.cs" />
- <Compile Include="Utils\StopwatchCe.cs" />
- <Compile Include="Utils\SummaryStatistics.cs" />
- <Compile Include="Utils\Vector2.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="ResourceNotFoundException.cs" />
- <Compile Include="Utils\AssemblyUtils.cs" />
- <Compile Include="Utils\BufferAppender.cs" />
- <Compile Include="Utils\CollectionUtils.cs" />
- <Compile Include="Utils\ColorUtils.cs" />
- <Compile Include="Utils\FontUtils.cs" />
- <Compile Include="Utils\GraphicsUtils.cs" />
- <Compile Include="Utils\IFilter.cs" />
- <Compile Include="Utils\IProgress.cs" />
- <Compile Include="Utils\KeyUtils.cs" />
- <Compile Include="Utils\LogUtils.cs" />
- <Compile Include="Utils\MathUtils.cs" />
- <Compile Include="Utils\Pair.cs" />
- <Compile Include="Utils\RoundingMethod.cs" />
- <Compile Include="Utils\StringUtils.cs" />
- <Compile Include="Utils\TimeResolution.cs" />
- <Compile Include="Utils\TimeUtils.cs" />
- <Compile Include="Utils\TypeUtils.cs" />
- <Compile Include="Utils\XmlUtils.cs" />
- </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>
- -->
- <Import Condition="'$(TargetFrameworkVersion)' == 'v3.5'" Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets" />
-</Project>
\ No newline at end of file
Modified: Trunk/Source/Roam.Resources/Roam.Resources.csproj
===================================================================
--- Trunk/Source/Roam.Resources/Roam.Resources.csproj 2009-04-27 12:29:46 UTC (rev 136)
+++ Trunk/Source/Roam.Resources/Roam.Resources.csproj 2009-04-29 12:37:17 UTC (rev 137)
@@ -1,4 +1,4 @@
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -17,6 +17,12 @@
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<FormFactorID>
</FormFactorID>
+ <FileUpgradeFlags>
+ </FileUpgradeFlags>
+ <OldToolsVersion>2.0</OldToolsVersion>
+ <NativePlatformName>Windows Mobile 5.0 Smartphone SDK</NativePlatformName>
+ <UpgradeBackupLocation>
+ </UpgradeBackupLocation>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -68,4 +74,5 @@
<Target Name="AfterBuild">
</Target>
-->
+ <Import Condition="'$(TargetFrameworkVersion)' == 'v3.5'" Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets" />
</Project>
\ No newline at end of file
Deleted: Trunk/Source/Roam.Resources/Roam.Resources.csproj.user
===================================================================
--- Trunk/Source/Roam.Resources/Roam.Resources.csproj.user 2009-04-27 12:29:46 UTC (rev 136)
+++ Trunk/Source/Roam.Resources/Roam.Resources.csproj.user 2009-04-29 12:37:17 UTC (rev 137)
@@ -1,5 +0,0 @@
-<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <DeployDeviceID>BEDE20EF-6548-413E-943F-1E87FEC249FA</DeployDeviceID>
- </PropertyGroup>
-</Project>
\ No newline at end of file
Deleted: Trunk/Source/Roam.Resources/Roam_VS2008.Resources.csproj
===================================================================
--- Trunk/Source/Roam.Resources/Roam_VS2008.Resources.csproj 2009-04-27 12:29:46 UTC (rev 136)
+++ Trunk/Source/Roam.Resources/Roam_VS2008.Resources.csproj 2009-04-29 12:37:17 UTC (rev 137)
@@ -1,78 +0,0 @@
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.21022</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{731A7107-FE6C-4172-99FC-1866075DB63C}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Roam.Resources</RootNamespace>
- <AssemblyName>Roam.Resources</AssemblyName>
- <ProjectTypeGuids>{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>Roam.Resources</DeployDirSuffix>
- <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
- <FormFactorID>
- </FormFactorID>
- <FileUpgradeFlags>
- </FileUpgradeFlags>
- <OldToolsVersion>2.0</OldToolsVersion>
- <NativePlatformName>Windows Mobile 5.0 Smartphone SDK</NativePlatformName>
- <UpgradeBackupLocation>
- </UpgradeBackupLocation>
- </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="System" />
- <Reference Include="System.Data" />
- <Reference Include="System.Xml" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Properties\AssemblyInfo.cs" />
- </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>
- -->
- <Import Condition="'$(TargetFrameworkVersion)' == 'v3.5'" Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets" />
-</Project>
\ No newline at end of file
Modified: Trunk/Source/Roam.SqlCe/Roam.SqlCe.csproj
===================================================================
--- Trunk/Source/Roam.SqlCe/Roam.SqlCe.csproj 2009-04-27 12:29:46 UTC (rev 136)
+++ Trunk/Source/Roam.SqlCe/Roam.SqlCe.csproj 2009-04-29 12:37:17 UTC (rev 137)
@@ -1,8 +1,8 @@
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>8.0.50727</ProductVersion>
+ <ProductVersion>9.0.21022</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{F44FC398-F850-452F-B459-DD1DE749DBBD}</ProjectGuid>
<OutputType>Library</OutputType>
@@ -17,6 +17,12 @@
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<FormFactorID>
</FormFactorID>
+ <FileUpgradeFlags>
+ </FileUpgradeFlags>
+ <OldToolsVersion>2.0</OldToolsVersion>
+ <NativePlatformName>Windows Mobile 5.0 Smartphone SDK</NativePlatformName>
+ <UpgradeBackupLocation>
+ </UpgradeBackupLocation>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -55,7 +61,7 @@
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
- <Reference Include="System.Data.SqlServerCe, Version=3.0.3600.0, Culture=neutral, PublicKeyToken=3be235df1c8d2ad3, processorArchitecture=MSIL" />
+ <Reference Include="System.Data.SqlServerCe, Version=3.5.0.0, Culture=neutral, PublicKeyToken=3be235df1c8d2ad3, processorArchitecture=MSIL" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
@@ -85,4 +91,5 @@
<Target Name="AfterBuild">
</Target>
-->
+ <Import Condition="'$(TargetFrameworkVersion)' == 'v3.5'" Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets" />
</Project>
\ No newline at end of file
Deleted: Trunk/Source/Roam.SqlCe/Roam.SqlCe.csproj.user
===================================================================
--- Trunk/Source/Roam.SqlCe/Roam.SqlCe.csproj.user 2009-04-27 12:29:46 UTC (rev 136)
+++ Trunk/Source/Roam.SqlCe/Roam.SqlCe.csproj.user 2009-04-29 12:37:17 UTC (rev 137)
@@ -1,5 +0,0 @@
-<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <DeployDeviceID>BEDE20EF-6548-413E-943F-1E87FEC249FA</DeployDeviceID>
- </PropertyGroup>
-</Project>
\ No newline at end of file
Deleted: Trunk/Source/Roam.SqlCe/Roam_VS2008.SqlCe.csproj
===================================================================
--- Trunk/Source/Roam.SqlCe/Roam_VS2008.SqlCe.csproj 2009-04-27 12:29:46 UTC (rev 136)
+++ Trunk/Source/Roam.SqlCe/Roam_VS2008.SqlCe.csproj 2009-04-29 12:37:17 UTC (rev 137)
@@ -1,95 +0,0 @@
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.21022</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{F44FC398-F850-452F-B459-DD1DE749DBBD}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Roam.SqlCe</RootNamespace>
- <AssemblyName>Roam.SqlCe</AssemblyName>
- <ProjectTypeGuids>{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>Roam.SqlCe</DeployDirSuffix>
- <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
- <FormFactorID>
- </FormFactorID>
- <FileUpgradeFlags>
- </FileUpgradeFlags>
- <OldToolsVersion>2.0</OldToolsVersion>
- <NativePlatformName>Windows Mobile 5.0 Smartphone SDK</NativePlatformName>
- <UpgradeBackupLocation>
- </UpgradeBackupLocation>
- </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="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\Library\Release\log4net.dll</HintPath>
- </Reference>
- <Reference Include="mscorlib" />
- <Reference Include="OpenNETCF, Version=2.0.0.0, Culture=neutral, PublicKeyToken=e60dbea84bb431b7, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\Library\Release\OpenNETCF.dll</HintPath>
- </Reference>
- <Reference Include="System" />
- <Reference Include="System.Data" />
- <Reference Include="System.Data.SqlServerCe, Version=3.5.0.0, Culture=neutral, PublicKeyToken=3be235df1c8d2ad3, processorArchitecture=MSIL" />
- <Reference Include="System.Xml" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="SqlCeConnectionManager.cs" />
- <Compile Include="SqlCeWrapper.cs" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\Roam.Common\Roam_VS2008.Common.csproj">
- <Project>{D519F656-5AB2-4429-8883-2497C8700FDA}</Project>
- <Name>Roam_VS2008.Common</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>
- -->
- <Import Condition="'$(TargetFrameworkVersion)' == 'v3.5'" Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets" />
-</Project>
\ No newline at end of file
Modified: Trunk/Source/Roam.Test/MainForm.resx
===================================================================
--- Trunk/Source/Roam.Test/MainForm.resx 2009-04-27 12:29:46 UTC (rev 136)
+++ Trunk/Source/Roam.Test/MainForm.resx 2009-04-29 12:37:17 UTC (rev 137)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
- <!--
+ <!--
Microsoft ResX Schema
Version 2.0
@@ -59,71 +59,59 @@
: 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">
+ <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>
+ <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
+ <metadata name="$this.Skin" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
+ <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></root>
Modified: Trunk/Source/Roam.Test/Media/SoundLoopPlayerTest.resx
===================================================================
--- Trunk/Source/Roam.Test/Media/SoundLoopPlayerTest.resx 2009-04-27 12:29:46 UTC (rev 136)
+++ Trunk/Source/Roam.Test/Media/SoundLoopPlayerTest.resx 2009-04-29 12:37:17 UTC (rev 137)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
- <!--
+ <!--
Microsoft ResX Schema
Version 2.0
@@ -59,71 +59,59 @@
: 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">
+ <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"/>
+ ...
[truncated message content] |
|
From: <st...@us...> - 2009-04-27 12:29:51
|
Revision: 136
http://roam.svn.sourceforge.net/roam/?rev=136&view=rev
Author: stumpp
Date: 2009-04-27 12:29:46 +0000 (Mon, 27 Apr 2009)
Log Message:
-----------
Update to SQLCF35
Modified Paths:
--------------
Trunk/Source/Roam.SqlCe/Roam_VS2008.SqlCe.csproj
Trunk/Source/Roam.Test/Roam_VS2008.Test.csproj
Modified: Trunk/Source/Roam.SqlCe/Roam_VS2008.SqlCe.csproj
===================================================================
--- Trunk/Source/Roam.SqlCe/Roam_VS2008.SqlCe.csproj 2009-03-18 00:25:35 UTC (rev 135)
+++ Trunk/Source/Roam.SqlCe/Roam_VS2008.SqlCe.csproj 2009-04-27 12:29:46 UTC (rev 136)
@@ -61,7 +61,7 @@
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
- <Reference Include="System.Data.SqlServerCe, Version=3.5.1.0, Culture=neutral, PublicKeyToken=3be235df1c8d2ad3, processorArchitecture=MSIL" />
+ <Reference Include="System.Data.SqlServerCe, Version=3.5.0.0, Culture=neutral, PublicKeyToken=3be235df1c8d2ad3, processorArchitecture=MSIL" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
Modified: Trunk/Source/Roam.Test/Roam_VS2008.Test.csproj
===================================================================
--- Trunk/Source/Roam.Test/Roam_VS2008.Test.csproj 2009-03-18 00:25:35 UTC (rev 135)
+++ Trunk/Source/Roam.Test/Roam_VS2008.Test.csproj 2009-04-27 12:29:46 UTC (rev 136)
@@ -83,7 +83,7 @@
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
- <Reference Include="System.Data.SqlServerCe, Version=3.5.1.0, Culture=neutral, PublicKeyToken=3be235df1c8d2ad3, processorArchitecture=MSIL" />
+ <Reference Include="System.Data.SqlServerCe, Version=3.5.0.0, Culture=neutral, PublicKeyToken=3be235df1c8d2ad3, processorArchitecture=MSIL" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jou...@us...> - 2009-03-18 00:25:41
|
Revision: 135
http://roam.svn.sourceforge.net/roam/?rev=135&view=rev
Author: jouittey
Date: 2009-03-18 00:25:35 +0000 (Wed, 18 Mar 2009)
Log Message:
-----------
Added a VS2008 project, using sqlCE 3.5
Added Paths:
-----------
Trunk/Source/Roam/Roam_VS2008.csproj
Trunk/Source/Roam.Common/Roam_VS2008.Common.csproj
Trunk/Source/Roam.Resources/Roam_VS2008.Resources.csproj
Trunk/Source/Roam.SqlCe/Roam_VS2008.SqlCe.csproj
Trunk/Source/Roam.Test/Roam_VS2008.Test.csproj
Trunk/Source/Roam.Test.Desktop/Roam_VS2008.Test.Desktop.csproj
Trunk/Source/Roam.UI/Roam_VS2008.UI.csproj
Trunk/Source/Roam.Win32/Roam_VS2008.Win32.vcproj
Trunk/Source/Roam_VS2008.sln
Trunk/Source/Sandbox.Roam/Sandbox_VS2008.Roam.csproj
Added: Trunk/Source/Roam/Roam_VS2008.csproj
===================================================================
--- Trunk/Source/Roam/Roam_VS2008.csproj (rev 0)
+++ Trunk/Source/Roam/Roam_VS2008.csproj 2009-03-18 00:25:35 UTC (rev 135)
@@ -0,0 +1,123 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.21022</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{2478CBD2-0FCB-443A-ABBE-4D6396A8E689}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Roam</RootNamespace>
+ <AssemblyName>Roam</AssemblyName>
+ <ProjectTypeGuids>{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>Roam</DeployDirSuffix>
+ <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
+ <FormFactorID>
+ </FormFactorID>
+ <FileUpgradeFlags>
+ </FileUpgradeFlags>
+ <OldToolsVersion>2.0</OldToolsVersion>
+ <NativePlatformName>Windows Mobile 5.0 Smartphone SDK</NativePlatformName>
+ <UpgradeBackupLocation>
+ </UpgradeBackupLocation>
+ </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="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\Library\Release\log4net.dll</HintPath>
+ </Reference>
+ <Reference Include="Microsoft.WindowsMobile, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
+ <Reference Include="Microsoft.WindowsMobile.PocketOutlook, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
+ <Reference Include="Microsoft.WindowsMobile.Status, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
+ <Reference Include="mscorlib" />
+ <Reference Include="OpenNETCF, Version=2.0.0.0, Culture=neutral, PublicKeyToken=e60dbea84bb431b7, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\Library\Release\OpenNETCF.dll</HintPath>
+ </Reference>
+ <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="OpenNETCF.WindowsMobile, Version=2.0.0.0, Culture=neutral, PublicKeyToken=e60dbea84bb431b7, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\Library\Release\OpenNETCF.WindowsMobile.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Media\CameraMediaCapturedSniffer.cs" />
+ <Compile Include="Media\CyclePlayer.cs" />
+ <Compile Include="Media\LedPlayer.cs" />
+ <Compile Include="Media\Player.cs" />
+ <Compile Include="Media\SoundLoopPlayer.cs" />
+ <Compile Include="Media\VibrationPlayer.cs" />
+ <Compile Include="PocketOutlook\Sms.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="Utils\DeviceUtils.cs" />
+ <Compile Include="Utils\PerformanceUtils.cs" />
+ <Compile Include="Utils\PowerNotification.cs" />
+ <Compile Include="Utils\PowerUtils.cs" />
+ <Compile Include="Utils\ProcessUtils.cs" />
+ <Compile Include="Utils\StorageCardUtils.cs" />
+ <Compile Include="Utils\SystemUtils.cs" />
+ <Compile Include="Utils\ThreadUtils.cs" />
+ <Compile Include="Utils\WindowsHooks.cs" />
+ <Compile Include="Utils\WindowsConstants.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Roam.Common\Roam_VS2008.Common.csproj">
+ <Project>{D519F656-5AB2-4429-8883-2497C8700FDA}</Project>
+ <Name>Roam_VS2008.Common</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <EmbeddedResource Include="Resources\Sounds\alert.wav" />
+ </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>
+ -->
+ <Import Condition="'$(TargetFrameworkVersion)' == 'v3.5'" Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets" />
+</Project>
\ No newline at end of file
Added: Trunk/Source/Roam.Common/Roam_VS2008.Common.csproj
===================================================================
--- Trunk/Source/Roam.Common/Roam_VS2008.Common.csproj (rev 0)
+++ Trunk/Source/Roam.Common/Roam_VS2008.Common.csproj 2009-03-18 00:25:35 UTC (rev 135)
@@ -0,0 +1,131 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.21022</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{D519F656-5AB2-4429-8883-2497C8700FDA}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Roam.Common</RootNamespace>
+ <AssemblyName>Roam.Common</AssemblyName>
+ <ProjectTypeGuids>{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>Roam.Common</DeployDirSuffix>
+ <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
+ <FormFactorID>
+ </FormFactorID>
+ <FileUpgradeFlags>
+ </FileUpgradeFlags>
+ <OldToolsVersion>2.0</OldToolsVersion>
+ <NativePlatformName>Windows Mobile 5.0 Smartphone SDK</NativePlatformName>
+ <UpgradeBackupLocation>
+ </UpgradeBackupLocation>
+ </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="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\Library\Release\log4net.dll</HintPath>
+ </Reference>
+ <Reference Include="mscorlib" />
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Windows.Forms" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Collections\BfsTreeEnumerator.cs" />
+ <Compile Include="Collections\BfsTreeWalker.cs" />
+ <Compile Include="Collections\Buffer.cs" />
+ <Compile Include="Collections\DfsTreeEnumerator.cs" />
+ <Compile Include="Collections\DfsTreeWalker.cs" />
+ <Compile Include="Collections\HashSet.cs" />
+ <Compile Include="Collections\PriorityQueue.cs" />
+ <Compile Include="Collections\ReadOnlyHashtable.cs" />
+ <Compile Include="Collections\ReverseComparer.cs" />
+ <Compile Include="Collections\ReverseEnumerator.cs" />
+ <Compile Include="Collections\Tree.cs" />
+ <Compile Include="Collections\TreeBranchEnumerator.cs" />
+ <Compile Include="Collections\TreeBranchWalker.cs" />
+ <Compile Include="Collections\TreeEnumerator.cs" />
+ <Compile Include="Collections\TreeNode.cs" />
+ <Compile Include="Collections\TreeWalker.cs" />
+ <Compile Include="Collections\WalkUpTreeBranchEnumerator.cs" />
+ <Compile Include="Collections\WalkUpTreeBranch.cs" />
+ <Compile Include="Utils\DebugWriteAppender.cs" />
+ <Compile Include="Utils\DirectoryUtils.cs" />
+ <Compile Include="Utils\EnumUtils.cs" />
+ <Compile Include="Utils\ErrorUtils.cs" />
+ <Compile Include="Utils\FileUtils.cs" />
+ <Compile Include="Utils\ImagingUtils.cs" />
+ <Compile Include="Utils\MeasurementUtils.cs" />
+ <Compile Include="Utils\StopwatchCe.cs" />
+ <Compile Include="Utils\SummaryStatistics.cs" />
+ <Compile Include="Utils\Vector2.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="ResourceNotFoundException.cs" />
+ <Compile Include="Utils\AssemblyUtils.cs" />
+ <Compile Include="Utils\BufferAppender.cs" />
+ <Compile Include="Utils\CollectionUtils.cs" />
+ <Compile Include="Utils\ColorUtils.cs" />
+ <Compile Include="Utils\FontUtils.cs" />
+ <Compile Include="Utils\GraphicsUtils.cs" />
+ <Compile Include="Utils\IFilter.cs" />
+ <Compile Include="Utils\IProgress.cs" />
+ <Compile Include="Utils\KeyUtils.cs" />
+ <Compile Include="Utils\LogUtils.cs" />
+ <Compile Include="Utils\MathUtils.cs" />
+ <Compile Include="Utils\Pair.cs" />
+ <Compile Include="Utils\RoundingMethod.cs" />
+ <Compile Include="Utils\StringUtils.cs" />
+ <Compile Include="Utils\TimeResolution.cs" />
+ <Compile Include="Utils\TimeUtils.cs" />
+ <Compile Include="Utils\TypeUtils.cs" />
+ <Compile Include="Utils\XmlUtils.cs" />
+ </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>
+ -->
+ <Import Condition="'$(TargetFrameworkVersion)' == 'v3.5'" Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets" />
+</Project>
\ No newline at end of file
Added: Trunk/Source/Roam.Resources/Roam_VS2008.Resources.csproj
===================================================================
--- Trunk/Source/Roam.Resources/Roam_VS2008.Resources.csproj (rev 0)
+++ Trunk/Source/Roam.Resources/Roam_VS2008.Resources.csproj 2009-03-18 00:25:35 UTC (rev 135)
@@ -0,0 +1,78 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.21022</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{731A7107-FE6C-4172-99FC-1866075DB63C}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Roam.Resources</RootNamespace>
+ <AssemblyName>Roam.Resources</AssemblyName>
+ <ProjectTypeGuids>{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>Roam.Resources</DeployDirSuffix>
+ <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
+ <FormFactorID>
+ </FormFactorID>
+ <FileUpgradeFlags>
+ </FileUpgradeFlags>
+ <OldToolsVersion>2.0</OldToolsVersion>
+ <NativePlatformName>Windows Mobile 5.0 Smartphone SDK</NativePlatformName>
+ <UpgradeBackupLocation>
+ </UpgradeBackupLocation>
+ </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="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </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>
+ -->
+ <Import Condition="'$(TargetFrameworkVersion)' == 'v3.5'" Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets" />
+</Project>
\ No newline at end of file
Added: Trunk/Source/Roam.SqlCe/Roam_VS2008.SqlCe.csproj
===================================================================
--- Trunk/Source/Roam.SqlCe/Roam_VS2008.SqlCe.csproj (rev 0)
+++ Trunk/Source/Roam.SqlCe/Roam_VS2008.SqlCe.csproj 2009-03-18 00:25:35 UTC (rev 135)
@@ -0,0 +1,95 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.21022</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{F44FC398-F850-452F-B459-DD1DE749DBBD}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Roam.SqlCe</RootNamespace>
+ <AssemblyName>Roam.SqlCe</AssemblyName>
+ <ProjectTypeGuids>{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>Roam.SqlCe</DeployDirSuffix>
+ <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
+ <FormFactorID>
+ </FormFactorID>
+ <FileUpgradeFlags>
+ </FileUpgradeFlags>
+ <OldToolsVersion>2.0</OldToolsVersion>
+ <NativePlatformName>Windows Mobile 5.0 Smartphone SDK</NativePlatformName>
+ <UpgradeBackupLocation>
+ </UpgradeBackupLocation>
+ </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="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\Library\Release\log4net.dll</HintPath>
+ </Reference>
+ <Reference Include="mscorlib" />
+ <Reference Include="OpenNETCF, Version=2.0.0.0, Culture=neutral, PublicKeyToken=e60dbea84bb431b7, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\Library\Release\OpenNETCF.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Data.SqlServerCe, Version=3.5.1.0, Culture=neutral, PublicKeyToken=3be235df1c8d2ad3, processorArchitecture=MSIL" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="SqlCeConnectionManager.cs" />
+ <Compile Include="SqlCeWrapper.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Roam.Common\Roam_VS2008.Common.csproj">
+ <Project>{D519F656-5AB2-4429-8883-2497C8700FDA}</Project>
+ <Name>Roam_VS2008.Common</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>
+ -->
+ <Import Condition="'$(TargetFrameworkVersion)' == 'v3.5'" Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets" />
+</Project>
\ No newline at end of file
Added: Trunk/Source/Roam.Test/Roam_VS2008.Test.csproj
===================================================================
--- Trunk/Source/Roam.Test/Roam_VS2008.Test.csproj (rev 0)
+++ Trunk/Source/Roam.Test/Roam_VS2008.Test.csproj 2009-03-18 00:25:35 UTC (rev 135)
@@ -0,0 +1,860 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.21022</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{F2F02B32-8567-43E6-8A4B-ED79E6EC8725}</ProjectGuid>
+ <OutputType>WinExe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Roam.Test</RootNamespace>
+ <AssemblyName>Roam.Test</AssemblyName>
+ <ProjectTypeGuids>{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\Roam.Test</DeployDirSuffix>
+ <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
+ <FormFactorID>
+ </FormFactorID>
+ <DeployDirPrefix>\</DeployDirPrefix>
+ <FileUpgradeFlags>
+ </FileUpgradeFlags>
+ <OldToolsVersion>2.0</OldToolsVersion>
+ <NativePlatformName>Windows Mobile 5.0 Smartphone SDK</NativePlatformName>
+ <UpgradeBackupLocation>
+ </UpgradeBackupLocation>
+ </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="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\Library\Release\log4net.dll</HintPath>
+ </Reference>
+ <Reference Include="Microsoft.WindowsCE.Forms" />
+ <Reference Include="Microsoft.WindowsMobile, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
+ <Reference Include="Microsoft.WindowsMobile.Forms, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
+ <Reference Include="Microsoft.WindowsMobile.PocketOutlook, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
+ <Reference Include="Microsoft.WindowsMobile.Status, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
+ <Reference Include="mscorlib" />
+ <Reference Include="OpenNETCF, Version=2.0.0.0, Culture=neutral, PublicKeyToken=e60dbea84bb431b7, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\Library\Release\OpenNETCF.dll</HintPath>
+ </Reference>
+ <Reference Include="OpenNETCF.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=e60dbea84bb431b7, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\Library\Release\OpenNETCF.Drawing.dll</HintPath>
+ </Reference>
+ <Reference Include="OpenNETCF.Net, Version=2.0.0.0, Culture=neutral, PublicKeyToken=e60dbea84bb431b7, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\Library\Release\OpenNETCF.Net.dll</HintPath>
+ </Reference>
+ <Reference Include="OpenNETCF.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=e60dbea84bb431b7, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\Library\Release\OpenNETCF.Windows.Forms.dll</HintPath>
+ </Reference>
+ <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.Data.SqlServerCe, Version=3.5.1.0, Culture=neutral, PublicKeyToken=3be235df1c8d2ad3, processorArchitecture=MSIL" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Windows.Forms" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Media\SoundLoopPlayerTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Media\SoundLoopPlayerTest.Designer.cs">
+ <DependentUpon>SoundLoopPlayerTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Sandbox\EnumWindowsTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Sandbox\EnumWindowsTest.Designer.cs">
+ <DependentUpon>EnumWindowsTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Sandbox\PhoneButtonManager.cs" />
+ <Compile Include="Sandbox\ColorsTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Sandbox\ColorsTest.Designer.cs">
+ <DependentUpon>ColorsTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Sandbox\DateTimePickerTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Sandbox\DateTimePickerTest.Designer.cs">
+ <DependentUpon>DateTimePickerTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Sandbox\ExceptionOverheadTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Sandbox\ExceptionOverheadTest.Designer.cs">
+ <DependentUpon>ExceptionOverheadTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Sandbox\Gradient\GradientFilledButton.cs">
+ <SubType>Component</SubType>
+ </Compile>
+ <Compile Include="Sandbox\Gradient\GradientFilledButton.Designer.cs">
+ <DependentUpon>GradientFilledButton.cs</DependentUpon>
+ </Compile>
+ <Compile Include="MainForm.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="MainForm.Designer.cs">
+ <DependentUpon>MainForm.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <EmbeddedResource Include="MainForm.resx">
+ <DependentUpon>MainForm.cs</DependentUpon>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Media\SoundLoopPlayerTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>SoundLoopPlayerTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Properties\Resources.resx">
+ <Generator>ResXFileCodeGenerator</Generator>
+ <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Sandbox\AssemblyTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>AssemblyTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Sandbox\EnumWindowsTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>EnumWindowsTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Sandbox\PhoneButtonManagerTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>PhoneButtonManagerTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Sandbox\ColorsTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>ColorsTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Sandbox\DateTimePickerTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>DateTimePickerTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Sandbox\ExceptionOverheadTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>ExceptionOverheadTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Sandbox\Gradient\GradientFillTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>GradientFillTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Sandbox\MonthCalendarTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>MonthCalendarTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Sandbox\PhoneStateTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>PhoneStateTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Sandbox\PingTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>PingTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Sandbox\RegisterHotKeyTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>RegisterHotKeyTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Sandbox\SignalStrengthTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>SignalStrengthTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Sandbox\SmsAccountTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>SmsAccountTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Sandbox\PhoneCallTalkingTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>PhoneCallTalkingTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Sandbox\StarItemTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>StarItemTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Sandbox\TimeTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>TimeTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Sandbox\TopMostFormTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>TopMostFormTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Sandbox\XmlSerializationTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>XmlSerializationTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="SqlCe\SqlCeConnectionManagerTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>SqlCeConnectionManagerTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\AlphaBlendTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>AlphaBlendTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\CalendarTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>CalendarTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\CameraMediaSnifferTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>CameraMediaSnifferTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\CheckedListBoxCacheTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>CheckedListBoxCacheTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\CheckedListBoxTest.resx">
+ <DependentUpon>CheckedListBoxTest.cs</DependentUpon>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\ImageMapTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>ImageMapTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\RoundedRectTest2.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>RoundedRectTest2.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\TextBoxFilteredListTest.resx">
+ <DependentUpon>TextBoxFilteredListTest.cs</DependentUpon>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\FontTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>FontTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\FormTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>FormTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\GradientStressTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>GradientStressTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\GradientTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>GradientTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\IImageButtonTest.resx">
+ <DependentUpon>IImageButtonTest.cs</DependentUpon>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\ImageButtonTest.resx">
+ <DependentUpon>ImageButtonTest.cs</DependentUpon>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\ImageListBoxTest.resx">
+ <DependentUpon>ImageListBoxTest.cs</DependentUpon>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\KeyListItemFilterForm.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>KeyListItemFilterForm.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\ListViewTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>ListViewTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\OrthogonalGradientTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>OrthogonalGradientTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\PhotoCameraControlTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>PhotoCameraControlTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\CameraPhotoCapturedTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>CameraPhotoCapturedTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\RadioListBoxTest.resx">
+ <DependentUpon>RadioListBoxTest.cs</DependentUpon>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\RadioListBoxTest2.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>RadioListBoxTest2.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\RoundedRectTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>RoundedRectTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\ScreenShotTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>ScreenShotTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\ScrollableLabelTest.resx">
+ <DependentUpon>ScrollableLabelTest.cs</DependentUpon>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\ScrollableLabelTest2.resx">
+ <DependentUpon>ScrollableLabelTest2.cs</DependentUpon>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\SmartListBoxTest.resx">
+ <DependentUpon>SmartListBoxTest.cs</DependentUpon>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Sandbox\SmsSendTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>SmsSendTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\SystemColorTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>SystemColorTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\TabControlTestPanel2.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>TabControlTestPanel2.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\TabControlTestPanel3.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>TabControlTestPanel3.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\TabControlTestPanel4.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>TabControlTestPanel4.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\TabControlTestPanel5.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>TabControlTestPanel5.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\WallpaperTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>WallpaperTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Utils\HookTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>HookTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Utils\IdleTimeForm.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>IdleTimeForm.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Utils\InsetsForm.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>InsetsForm.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Utils\KeySniffersTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>KeySniffersTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Utils\KeySnifferTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>KeySnifferTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Utils\MeasureStringTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>MeasureStringTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Utils\Power2TestForm.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>Power2TestForm.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Utils\PowerTestForm.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>PowerTestForm.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Utils\StorageCardUtilsTest.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>StorageCardUtilsTest.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Utils\TextBoxForm.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>TextBoxForm.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UI\Controls\TextBoxTest.resx">
+ <DependentUpon>TextBoxTest.cs</DependentUpon>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ <Compile Include="Properties\Resources.Designer.cs">
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Resources.resx</DependentUpon>
+ <DesignTime>True</DesignTime>
+ </Compile>
+ <Compile Include="Sandbox\AssemblyTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Sandbox\AssemblyTest.Designer.cs">
+ <DependentUpon>AssemblyTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Sandbox\Gradient\GradientFill.cs" />
+ <Compile Include="Sandbox\Gradient\GradientFillTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Sandbox\Gradient\GradientFillTest.Designer.cs">
+ <DependentUpon>GradientFillTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Sandbox\Gradient\Win32Helper.cs" />
+ <Compile Include="Sandbox\ImageMap.cs">
+ <SubType>Component</SubType>
+ </Compile>
+ <Compile Include="Sandbox\ImageMap.Designer.cs">
+ <DependentUpon>ImageMap.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Sandbox\MonthCalendarTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Sandbox\MonthCalendarTest.Designer.cs">
+ <DependentUpon>MonthCalendarTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Sandbox\PhoneButtonManagerTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Sandbox\PhoneButtonManagerTest.Designer.cs">
+ <DependentUpon>PhoneButtonManagerTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Sandbox\PhoneStateTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Sandbox\PhoneStateTest.Designer.cs">
+ <DependentUpon>PhoneStateTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Sandbox\PingTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Sandbox\PingTest.Designer.cs">
+ <DependentUpon>PingTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Sandbox\RegisterHotKeyTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Sandbox\RegisterHotKeyTest.Designer.cs">
+ <DependentUpon>RegisterHotKeyTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Sandbox\SignalStrengthTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Sandbox\SignalStrengthTest.Designer.cs">
+ <DependentUpon>SignalStrengthTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Sandbox\SmsAccountTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Sandbox\SmsAccountTest.Designer.cs">
+ <DependentUpon>SmsAccountTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Sandbox\PhoneCallTalkingTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Sandbox\PhoneCallTalkingTest.Designer.cs">
+ <DependentUpon>PhoneCallTalkingTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Sandbox\StarItemTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Sandbox\StarItemTest.Designer.cs">
+ <DependentUpon>StarItemTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Sandbox\TextBoxBackgroundTest.cs">
+ <SubType>Component</SubType>
+ </Compile>
+ <Compile Include="Sandbox\TimeTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Sandbox\TimeTest.Designer.cs">
+ <DependentUpon>TimeTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Sandbox\TopMostFormTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Sandbox\TopMostFormTest.Designer.cs">
+ <DependentUpon>TopMostFormTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Sandbox\XmlSerializationTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Sandbox\XmlSerializationTest.Designer.cs">
+ <DependentUpon>XmlSerializationTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="SqlCe\SqlCeConnectionManagerTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="SqlCe\SqlCeConnectionManagerTest.Designer.cs">
+ <DependentUpon>SqlCeConnectionManagerTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\AlphaBlendControl.cs">
+ <SubType>Component</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\AlphaBlendControl.Designer.cs">
+ <DependentUpon>AlphaBlendControl.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\AlphaBlendTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\AlphaBlendTest.Designer.cs">
+ <DependentUpon>AlphaBlendTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\CalendarTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\CalendarTest.Designer.cs">
+ <DependentUpon>CalendarTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\CheckedListBoxCacheTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\CheckedListBoxCacheTest.Designer.cs">
+ <DependentUpon>CheckedListBoxCacheTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\CheckedListBoxTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\CheckedListBoxTest.Designer.cs">
+ <DependentUpon>CheckedListBoxTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\CameraPhotoCapturedTest2.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\CameraPhotoCapturedTest2.Designer.cs">
+ <DependentUpon>CameraPhotoCapturedTest2.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\CameraMediaSnifferTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\CameraMediaSnifferTest.Designer.cs">
+ <DependentUpon>CameraMediaSnifferTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\ImageMapTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\ImageMapTest.Designer.cs">
+ <DependentUpon>ImageMapTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\RoundedRectTest2.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\RoundedRectTest2.Designer.cs">
+ <DependentUpon>RoundedRectTest2.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\TextBoxFilteredListTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\TextBoxFilteredListTest.Designer.cs">
+ <DependentUpon>TextBoxFilteredListTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\FontTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\FontTest.Designer.cs">
+ <DependentUpon>FontTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\FormTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\FormTest.Designer.cs">
+ <DependentUpon>FormTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\GradientStressTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\GradientStressTest.Designer.cs">
+ <DependentUpon>GradientStressTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\GradientTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\GradientTest.Designer.cs">
+ <DependentUpon>GradientTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\IImageButtonTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\IImageButtonTest.Designer.cs">
+ <DependentUpon>IImageButtonTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\ImageButtonTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\ImageButtonTest.Designer.cs">
+ <DependentUpon>ImageButtonTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\ImageListBoxTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\ImageListBoxTest.Designer.cs">
+ <DependentUpon>ImageListBoxTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\KeyListItemFilterForm.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\KeyListItemFilterForm.Designer.cs">
+ <DependentUpon>KeyListItemFilterForm.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\ListViewTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\ListViewTest.Designer.cs">
+ <DependentUpon>ListViewTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\OrthogonalGradientControl.cs">
+ <SubType>Component</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\OrthogonalGradientControl.Designer.cs">
+ <DependentUpon>OrthogonalGradientControl.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\OrthogonalGradientTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\OrthogonalGradientTest.Designer.cs">
+ <DependentUpon>OrthogonalGradientTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\PhotoCameraControlTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\PhotoCameraControlTest.Designer.cs">
+ <DependentUpon>PhotoCameraControlTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\CameraPhotoCapturedTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\CameraPhotoCapturedTest.Designer.cs">
+ <DependentUpon>CameraPhotoCapturedTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\RadioListBoxTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\RadioListBoxTest.Designer.cs">
+ <DependentUpon>RadioListBoxTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\RadioListBoxTest2.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\RadioListBoxTest2.Designer.cs">
+ <DependentUpon>RadioListBoxTest2.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\RoundedRectTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\RoundedRectTest.Designer.cs">
+ <DependentUpon>RoundedRectTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\ScreenShotTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\ScreenShotTest.Designer.cs">
+ <DependentUpon>ScreenShotTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\ScrollableLabelTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\ScrollableLabelTest.Designer.cs">
+ <DependentUpon>ScrollableLabelTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\ScrollableLabelTest2.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\ScrollableLabelTest2.Designer.cs">
+ <DependentUpon>ScrollableLabelTest2.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\SmartListBoxTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\SmartListBoxTest.Designer.cs">
+ <DependentUpon>SmartListBoxTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\GradientControl.cs">
+ <SubType>Component</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\GradientControl.Designer.cs">
+ <DependentUpon>GradientControl.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Sandbox\SmsSendTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Sandbox\SmsSendTest.Designer.cs">
+ <DependentUpon>SmsSendTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\SystemColorTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\SystemColorTest.Designer.cs">
+ <DependentUpon>SystemColorTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\TabControlTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\TabControlTest.Designer.cs">
+ <DependentUpon>TabControlTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\TabControlTestPanel1.cs">
+ <SubType>Component</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\TabControlTestPanel1.Designer.cs">
+ <DependentUpon>TabControlTestPanel1.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\TabControlTestPanel2.cs">
+ <SubType>Component</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\TabControlTestPanel2.Designer.cs">
+ <DependentUpon>TabControlTestPanel2.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\TabControlTestPanel3.cs">
+ <SubType>Component</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\TabControlTestPanel3.Designer.cs">
+ <DependentUpon>TabControlTestPanel3.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\TabControlTestPanel4.cs">
+ <SubType>Component</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\TabControlTestPanel4.Designer.cs">
+ <DependentUpon>TabControlTestPanel4.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\TabControlTestPanel5.cs">
+ <SubType>Component</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\TabControlTestPanel5.Designer.cs">
+ <DependentUpon>TabControlTestPanel5.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\WallpaperTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\WallpaperTest.Designer.cs">
+ <DependentUpon>WallpaperTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Utils\HookTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Utils\HookTest.Designer.cs">
+ <DependentUpon>HookTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Utils\IdleTimeForm.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Utils\IdleTimeForm.Designer.cs">
+ <DependentUpon>IdleTimeForm.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Utils\InsetsForm.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Utils\InsetsForm.Designer.cs">
+ <DependentUpon>InsetsForm.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Utils\KeySniffersTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Utils\KeySniffersTest.Designer.cs">
+ <DependentUpon>KeySniffersTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Utils\KeySnifferTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Utils\KeySnifferTest.Designer.cs">
+ <DependentUpon>KeySnifferTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Utils\MeasureStringTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Utils\MeasureStringTest.Designer.cs">
+ <DependentUpon>MeasureStringTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Utils\Power2TestForm.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Utils\Power2TestForm.Designer.cs">
+ <DependentUpon>Power2TestForm.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Utils\PowerTestForm.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Utils\PowerTestForm.Designer.cs">
+ <DependentUpon>PowerTestForm.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Utils\StorageCardUtilsTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Utils\StorageCardUtilsTest.Designer.cs">
+ <DependentUpon>StorageCardUtilsTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Utils\TextBoxForm.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Utils\TextBoxForm.Designer.cs">
+ <DependentUpon>TextBoxForm.cs</DependentUpon>
+ </Compile>
+ <Compile Include="UI\Controls\TextBoxTest.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UI\Controls\TextBoxTest.Designer.cs">
+ <DependentUpon>TextBoxTest.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Utils\TestUtils.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Roam.Common\Roam_VS2008.Common.csproj">
+ <Project>{D519F656-5AB2-4429-8883-2497C8700FDA}</Project>
+ <Name>Roam_VS2008.Common</Name>
+ </ProjectReference>
+ <ProjectReference Include="..\Roam.SqlCe\Roam_VS2008.SqlCe.csproj">
+ <Project>{F44FC398-F850-452F-B459-DD1DE749DBBD}</Project>
+ <Name>Roam_VS2008.SqlCe</Name>
+ </ProjectReference>
+ <ProjectReference Include="..\Roam.UI\Roam_VS2008.UI.csproj">
+ <Project>{DAC64B51-A973-4AB8-9B3D-6548EDC6E867}</Project>
+ <Name>Roam_VS2008.UI</Name>
+ </ProjectReference>
+ <ProjectReference Include="..\Roam\Roam_VS2008.csproj">
+ <Project>{2478CBD2-0FCB-443A-ABBE-4D6396A8E689}</Project>
+ <Name>Roam_VS2008</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="LogConfig.xml">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ </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.
+ ...
[truncated message content] |
|
From: <jon...@us...> - 2008-09-24 05:23:02
|
Revision: 134
http://roam.svn.sourceforge.net/roam/?rev=134&view=rev
Author: jonfroehlich
Date: 2008-09-24 05:22:52 +0000 (Wed, 24 Sep 2008)
Log Message:
-----------
fixed GraphicUtils.MeasureString() bug that ended in stack overflow in Roam.Common.GraphicsUtils
fixed error message in Roam.SqlCe.SqlConnectionManager when Initialize was called before Dispose
Modified Paths:
--------------
Trunk/Source/Roam.Common/Utils/GraphicsUtils.cs
Trunk/Source/Roam.SqlCe/SqlCeConnectionManager.cs
Trunk/Source/Roam.UI/Controls/ScrollableLabel.cs
Modified: Trunk/Source/Roam.Common/Utils/GraphicsUtils.cs
===================================================================
--- Trunk/Source/Roam.Common/Utils/GraphicsUtils.cs 2008-08-06 19:57:34 UTC (rev 133)
+++ Trunk/Source/Roam.Common/Utils/GraphicsUtils.cs 2008-09-24 05:22:52 UTC (rev 134)
@@ -163,7 +163,7 @@
//below metrics do not render correctly on the mobile device.
if (indexSpace == -1)
{
- for (int i = 0; i < sTrimmed.Length; i++)
+ for (int i = 1; i < sTrimmed.Length; i++)
{
if (g.MeasureString(sTrimmed.Substring(0, i), font).Width < width)
{
Modified: Trunk/Source/Roam.SqlCe/SqlCeConnectionManager.cs
===================================================================
--- Trunk/Source/Roam.SqlCe/SqlCeConnectionManager.cs 2008-08-06 19:57:34 UTC (rev 133)
+++ Trunk/Source/Roam.SqlCe/SqlCeConnectionManager.cs 2008-09-24 05:22:52 UTC (rev 134)
@@ -112,8 +112,8 @@
{
if (_connectionPool != null)
{
- InvalidOperationException ioe =
- new InvalidOperationException("The SqlConnectionManager has already been initialized, call CloseAllConnections and then Initialize");
+ InvalidOperationException ioe =
+ new InvalidOperationException("The SqlConnectionManager has already been initialized, call Dispose and then Initialize");
_log.Error(ioe.Message, ioe);
throw ioe;
}
Modified: Trunk/Source/Roam.UI/Controls/ScrollableLabel.cs
===================================================================
--- Trunk/Source/Roam.UI/Controls/ScrollableLabel.cs 2008-08-06 19:57:34 UTC (rev 133)
+++ Trunk/Source/Roam.UI/Controls/ScrollableLabel.cs 2008-09-24 05:22:52 UTC (rev 134)
@@ -174,7 +174,7 @@
get { return base.BackColor; }
set
{
- if (base.BackColor != value)
+ if (base.BackColor != value || _backFill.Color != value)
{
_backFill.Color = value;
base.BackColor = value;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jon...@us...> - 2008-08-06 19:57:35
|
Revision: 133
http://roam.svn.sourceforge.net/roam/?rev=133&view=rev
Author: jonfroehlich
Date: 2008-08-06 19:57:34 +0000 (Wed, 06 Aug 2008)
Log Message:
-----------
csproj updated
Modified Paths:
--------------
Trunk/Source/Roam.Test/Roam.Test.csproj
Modified: Trunk/Source/Roam.Test/Roam.Test.csproj
===================================================================
--- Trunk/Source/Roam.Test/Roam.Test.csproj 2008-08-06 12:38:45 UTC (rev 132)
+++ Trunk/Source/Roam.Test/Roam.Test.csproj 2008-08-06 19:57:34 UTC (rev 133)
@@ -564,7 +564,7 @@
<DependentUpon>TextBoxFilteredListTest.cs</DependentUpon>
</Compile>
<Compile Include="UI\Controls\FontTest.cs">
- <SubType>Form</SubType>
+ <SubType>Component</SubType>
</Compile>
<Compile Include="UI\Controls\FontTest.Designer.cs">
<DependentUpon>FontTest.cs</DependentUpon>
@@ -702,7 +702,7 @@
<DependentUpon>SystemColorTest.cs</DependentUpon>
</Compile>
<Compile Include="UI\Controls\TabControlTest.cs">
- <SubType>Component</SubType>
+ <SubType>Form</SubType>
</Compile>
<Compile Include="UI\Controls\TabControlTest.Designer.cs">
<DependentUpon>TabControlTest.cs</DependentUpon>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jon...@us...> - 2008-08-06 12:38:50
|
Revision: 132
http://roam.svn.sourceforge.net/roam/?rev=132&view=rev
Author: jonfroehlich
Date: 2008-08-06 12:38:45 +0000 (Wed, 06 Aug 2008)
Log Message:
-----------
csproj user files updated
Modified Paths:
--------------
Trunk/Source/Roam/Roam.csproj.user
Trunk/Source/Roam.Common/Roam.Common.csproj.user
Trunk/Source/Roam.Resources/Roam.Resources.csproj.user
Trunk/Source/Roam.SqlCe/Roam.SqlCe.csproj.user
Trunk/Source/Roam.Test/Roam.Test.csproj.user
Trunk/Source/Roam.UI/Roam.UI.csproj.user
Trunk/Source/Sandbox.Roam/Sandbox.Roam.csproj.user
Modified: Trunk/Source/Roam/Roam.csproj.user
===================================================================
--- Trunk/Source/Roam/Roam.csproj.user 2008-03-27 18:18:03 UTC (rev 131)
+++ Trunk/Source/Roam/Roam.csproj.user 2008-08-06 12:38:45 UTC (rev 132)
@@ -1,5 +1,5 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
- <DeployDeviceID>BD0CC567-F6FD-4ca3-99D2-063EFDFC0A39d6518ffb-710f-11d3-99f2-00105a0df099</DeployDeviceID>
+ <DeployDeviceID>BEDE20EF-6548-413E-943F-1E87FEC249FA</DeployDeviceID>
</PropertyGroup>
</Project>
\ No newline at end of file
Modified: Trunk/Source/Roam.Common/Roam.Common.csproj.user
===================================================================
--- Trunk/Source/Roam.Common/Roam.Common.csproj.user 2008-03-27 18:18:03 UTC (rev 131)
+++ Trunk/Source/Roam.Common/Roam.Common.csproj.user 2008-08-06 12:38:45 UTC (rev 132)
@@ -1,5 +1,5 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
- <DeployDeviceID>BD0CC567-F6FD-4ca3-99D2-063EFDFC0A39d6518ffb-710f-11d3-99f2-00105a0df099</DeployDeviceID>
+ <DeployDeviceID>BEDE20EF-6548-413E-943F-1E87FEC249FA</DeployDeviceID>
</PropertyGroup>
</Project>
\ No newline at end of file
Modified: Trunk/Source/Roam.Resources/Roam.Resources.csproj.user
===================================================================
--- Trunk/Source/Roam.Resources/Roam.Resources.csproj.user 2008-03-27 18:18:03 UTC (rev 131)
+++ Trunk/Source/Roam.Resources/Roam.Resources.csproj.user 2008-08-06 12:38:45 UTC (rev 132)
@@ -1,5 +1,5 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
- <DeployDeviceID>BD0CC567-F6FD-4ca3-99D2-063EFDFC0A39d6518ffb-710f-11d3-99f2-00105a0df099</DeployDeviceID>
+ <DeployDeviceID>BEDE20EF-6548-413E-943F-1E87FEC249FA</DeployDeviceID>
</PropertyGroup>
</Project>
\ No newline at end of file
Modified: Trunk/Source/Roam.SqlCe/Roam.SqlCe.csproj.user
===================================================================
--- Trunk/Source/Roam.SqlCe/Roam.SqlCe.csproj.user 2008-03-27 18:18:03 UTC (rev 131)
+++ Trunk/Source/Roam.SqlCe/Roam.SqlCe.csproj.user 2008-08-06 12:38:45 UTC (rev 132)
@@ -1,5 +1,5 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
- <DeployDeviceID>BD0CC567-F6FD-4ca3-99D2-063EFDFC0A39d6518ffb-710f-11d3-99f2-00105a0df099</DeployDeviceID>
+ <DeployDeviceID>BEDE20EF-6548-413E-943F-1E87FEC249FA</DeployDeviceID>
</PropertyGroup>
</Project>
\ No newline at end of file
Modified: Trunk/Source/Roam.Test/Roam.Test.csproj.user
===================================================================
--- Trunk/Source/Roam.Test/Roam.Test.csproj.user 2008-03-27 18:18:03 UTC (rev 131)
+++ Trunk/Source/Roam.Test/Roam.Test.csproj.user 2008-08-06 12:38:45 UTC (rev 132)
@@ -1,6 +1,6 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
- <DeployDeviceID>BD0CC567-F6FD-4ca3-99D2-063EFDFC0A39d6518ffb-710f-11d3-99f2-00105a0df099</DeployDeviceID>
+ <DeployDeviceID>BEDE20EF-6548-413E-943F-1E87FEC249FA</DeployDeviceID>
<NETCFDeploy>true</NETCFDeploy>
<EnableSigning>false</EnableSigning>
</PropertyGroup>
Modified: Trunk/Source/Roam.UI/Roam.UI.csproj.user
===================================================================
--- Trunk/Source/Roam.UI/Roam.UI.csproj.user 2008-03-27 18:18:03 UTC (rev 131)
+++ Trunk/Source/Roam.UI/Roam.UI.csproj.user 2008-08-06 12:38:45 UTC (rev 132)
@@ -1,5 +1,5 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
- <DeployDeviceID>BD0CC567-F6FD-4ca3-99D2-063EFDFC0A39d6518ffb-710f-11d3-99f2-00105a0df099</DeployDeviceID>
+ <DeployDeviceID>BEDE20EF-6548-413E-943F-1E87FEC249FA</DeployDeviceID>
</PropertyGroup>
</Project>
\ No newline at end of file
Modified: Trunk/Source/Sandbox.Roam/Sandbox.Roam.csproj.user
===================================================================
--- Trunk/Source/Sandbox.Roam/Sandbox.Roam.csproj.user 2008-03-27 18:18:03 UTC (rev 131)
+++ Trunk/Source/Sandbox.Roam/Sandbox.Roam.csproj.user 2008-08-06 12:38:45 UTC (rev 132)
@@ -1,5 +1,5 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
- <DeployDeviceID>BD0CC567-F6FD-4ca3-99D2-063EFDFC0A39d6518ffb-710f-11d3-99f2-00105a0df099</DeployDeviceID>
+ <DeployDeviceID>BEDE20EF-6548-413E-943F-1E87FEC249FA</DeployDeviceID>
</PropertyGroup>
</Project>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jon...@us...> - 2008-03-27 18:18:10
|
Revision: 131
http://roam.svn.sourceforge.net/roam/?rev=131&view=rev
Author: jonfroehlich
Date: 2008-03-27 11:18:03 -0700 (Thu, 27 Mar 2008)
Log Message:
-----------
1. added StopwatchCe that can be used on the desktop and/or in WM
2. changed SqlCeConnectionManager to use StopwatchCe
3. added GetClassName functionality to WindowUtils
Modified Paths:
--------------
Trunk/Source/Roam.Common/Roam.Common.csproj
Trunk/Source/Roam.SqlCe/SqlCeConnectionManager.cs
Trunk/Source/Roam.UI/Utils/WindowUtils.cs
Added Paths:
-----------
Trunk/Source/Roam.Common/Utils/StopwatchCe.cs
Modified: Trunk/Source/Roam.Common/Roam.Common.csproj
===================================================================
--- Trunk/Source/Roam.Common/Roam.Common.csproj 2008-03-20 21:26:21 UTC (rev 130)
+++ Trunk/Source/Roam.Common/Roam.Common.csproj 2008-03-27 18:18:03 UTC (rev 131)
@@ -81,6 +81,7 @@
<Compile Include="Utils\FileUtils.cs" />
<Compile Include="Utils\ImagingUtils.cs" />
<Compile Include="Utils\MeasurementUtils.cs" />
+ <Compile Include="Utils\StopwatchCe.cs" />
<Compile Include="Utils\SummaryStatistics.cs" />
<Compile Include="Utils\Vector2.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
Added: Trunk/Source/Roam.Common/Utils/StopwatchCe.cs
===================================================================
--- Trunk/Source/Roam.Common/Utils/StopwatchCe.cs (rev 0)
+++ Trunk/Source/Roam.Common/Utils/StopwatchCe.cs 2008-03-27 18:18:03 UTC (rev 131)
@@ -0,0 +1,80 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace Roam.Common.Utils
+{
+ public class StopwatchCe
+ {
+ #region Fields
+ private int _startTickCount = 0;
+ private int _accumulatedTicks = 0;
+ private bool _isRunning = false;
+ #endregion Fields
+
+
+ public StopwatchCe()
+ {
+ }
+
+ public TimeSpan Elapsed
+ {
+ get { return TimeSpan.FromMilliseconds(ElapsedMilliseconds); }
+ }
+
+ public long ElapsedMilliseconds
+ {
+ get
+ {
+ return _accumulatedTicks +
+ ((_startTickCount > 0) ?
+ Environment.TickCount - _startTickCount : 0);
+ }
+ }
+
+ public bool IsRunning
+ {
+ get { return _isRunning; }
+ }
+
+ public void Reset()
+ {
+ _startTickCount = 0;
+ _accumulatedTicks = 0;
+ _isRunning = false;
+ }
+
+ //
+ // Summary:
+ // Starts, or resumes, measuring elapsed time for an interval.
+ public void Start()
+ {
+ _isRunning = true;
+ _startTickCount = Environment.TickCount;
+ }
+
+ //
+ // Summary:
+ // Stops measuring elapsed time for an interval.
+ public void Stop()
+ {
+ _isRunning = false;
+ _accumulatedTicks += Environment.TickCount - _startTickCount;
+ _startTickCount = 0;
+ }
+
+ //
+ // Summary:
+ // Initializes a new System.Diagnostics.Stopwatch instance, sets the elapsed
+ // time property to zero, and starts measuring elapsed time.
+ //
+ // Returns:
+ // A System.Diagnostics.Stopwatch that has just begun measuring elapsed time.
+ public static StopwatchCe StartNew()
+ {
+ StopwatchCe stopwatch = new StopwatchCe();
+ stopwatch.Start();
+ return stopwatch;
+ }
+ }
+}
Modified: Trunk/Source/Roam.SqlCe/SqlCeConnectionManager.cs
===================================================================
--- Trunk/Source/Roam.SqlCe/SqlCeConnectionManager.cs 2008-03-20 21:26:21 UTC (rev 130)
+++ Trunk/Source/Roam.SqlCe/SqlCeConnectionManager.cs 2008-03-27 18:18:03 UTC (rev 131)
@@ -107,7 +107,7 @@
/// <param name="connectionString"></param>
public static void Initialize(string connectionString)
{
- Stopwatch sw = Stopwatch.StartNew();
+ StopwatchCe sw = StopwatchCe.StartNew();
lock (_objLock)
{
if (_connectionPool != null)
@@ -384,7 +384,7 @@
{
lock (_objLock)
{
- Stopwatch sw = Stopwatch.StartNew();
+ StopwatchCe sw = StopwatchCe.StartNew();
SqlCeConnection sqlConn;
Thread threadCurrent = Thread.CurrentThread;
@@ -448,7 +448,7 @@
{
lock (_objLock)
{
- Stopwatch sw = Stopwatch.StartNew();
+ StopwatchCe sw = StopwatchCe.StartNew();
Thread threadCurrent = Thread.CurrentThread;
bool returnVal = false;
Modified: Trunk/Source/Roam.UI/Utils/WindowUtils.cs
===================================================================
--- Trunk/Source/Roam.UI/Utils/WindowUtils.cs 2008-03-20 21:26:21 UTC (rev 130)
+++ Trunk/Source/Roam.UI/Utils/WindowUtils.cs 2008-03-27 18:18:03 UTC (rev 131)
@@ -211,6 +211,37 @@
}
}
+ public static void PrintWindowHandles(IntPtr hWnd)
+ {
+ string s = GetWindowString(hWnd);
+ Debug.WriteLine(s);
+ IntPtr childHWnd = GetChildWindow(hWnd);
+ if (childHWnd != IntPtr.Zero)
+ {
+ PrintWindowHandles(childHWnd);
+ }
+
+ IntPtr nextHWnd = GetWindow(hWnd, GetWindowConstants.GW_HWNDNEXT);
+ if (nextHWnd != IntPtr.Zero)
+ {
+ PrintWindowHandles(nextHWnd);
+ }
+ }
+
+ private static string GetWindowString(IntPtr hWnd)
+ {
+ string title = GetWindowText(hWnd);
+ string className = GetWindowClassName(hWnd);
+ StringBuilder sb = new StringBuilder();
+ sb.Append("Handle=");
+ sb.Append(string.Format("{0:X2}", hWnd.ToInt32()));
+ sb.Append("|Title=");
+ sb.Append(title);
+ sb.Append("|ClassName=");
+ sb.Append(className);
+ return sb.ToString();
+ }
+
public static void FindAndPrintFocusedControl(Control control)
{
Control controlFocused = FindFocusedControl(control);
@@ -286,6 +317,29 @@
}
/// <summary>
+ /// This function retrieves the name of the class to which the specified window belongs.
+ /// A remote application interface (RAPI) version of this function exists and is called CeGetClassName.
+ /// </summary>
+ /// <param name="hWnd"></param>
+ /// <param name="lpClassName"></param>
+ /// <param name="nMaxCount"></param>
+ /// <returns></returns>
+ [DllImport("coredll.dll", SetLastError = true)]
+ private static extern int GetClassName(IntPtr hWnd, StringBuilder lpClassName, int nMaxCount);
+
+ public static string GetWindowClassName(IntPtr hWnd)
+ {
+ return GetClassName(hWnd, 1000);
+ }
+
+ public static string GetClassName(IntPtr hWnd, int nMaxCount)
+ {
+ StringBuilder sb = new StringBuilder(nMaxCount);
+ GetClassName(hWnd, sb, sb.Capacity);
+ return sb.ToString();
+ }
+
+ /// <summary>
/// The GetWindow function retrieves a handle to a window that has the specified relationship (Z-Order or owner) to the specified window.
/// </summary>
/// <param name="hWnd">[in] Handle to a window. The window handle retrieved is relative to this window, based on the value of the uCmd parameter. </param>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jon...@us...> - 2008-03-20 21:26:26
|
Revision: 130
http://roam.svn.sourceforge.net/roam/?rev=130&view=rev
Author: jonfroehlich
Date: 2008-03-20 14:26:21 -0700 (Thu, 20 Mar 2008)
Log Message:
-----------
1. fixed GetApproximateAge in TimeUtils, now printing our correct plurals
2. added DialogSafeForm hack to RoamForm
Modified Paths:
--------------
Trunk/Source/Roam.Common/Utils/TimeUtils.cs
Trunk/Source/Roam.Test/Roam.Test.csproj
Trunk/Source/Roam.UI/Forms/RoamForm.cs
Modified: Trunk/Source/Roam.Common/Utils/TimeUtils.cs
===================================================================
--- Trunk/Source/Roam.Common/Utils/TimeUtils.cs 2008-03-19 08:42:06 UTC (rev 129)
+++ Trunk/Source/Roam.Common/Utils/TimeUtils.cs 2008-03-20 21:26:21 UTC (rev 130)
@@ -42,139 +42,176 @@
return GetApproximateAge(timeSpan, 1);
}
+
+ public static string GetApproximateAge(TimeSpan timeSpan, int maxUnits)
+ {
+ return GetApproximateAge(timeSpan, maxUnits, false);
+ }
+
/// <summary>
/// Very approximate age (doesn't calculate leap year, assumes all months are 30 days long, etc.)
/// </summary>
/// <param name="timeSpan"></param>
/// <param name="maxUnits"></param>
/// <returns></returns>
- public static string GetApproximateAge(TimeSpan timeSpan, int maxUnits)
+ public static string GetApproximateAge(TimeSpan timeSpan, int maxUnits, bool verboseNames)
{
if (timeSpan.TotalDays > DaysInYear)
{
double years = timeSpan.TotalDays / DaysInYear;
+ string unit = (verboseNames) ? "year" : "yr";
if (maxUnits == 1)
{
- return string.Format("{0:0.0} years", years);
+ return FormatPlural(years, unit);
}
else
{
int yearsInteger = (int)Math.Floor(years);
double fraction = years - yearsInteger;
double daysLeft = fraction * DaysInYear;
- return string.Format("{0} year{1}, {2}",
- yearsInteger, (yearsInteger == 1) ? "" : "s",
- GetApproximateAge(TimeSpan.FromDays(daysLeft), maxUnits - 1));
+ return string.Format("{0} {1}{2}, {3}",
+ yearsInteger, unit, (yearsInteger == 1) ? "" : "s",
+ GetApproximateAge(TimeSpan.FromDays(daysLeft), maxUnits - 1, verboseNames));
}
}
else if (timeSpan.TotalDays > DaysInMonth)
{
double months = timeSpan.TotalDays / DaysInMonth;
+ string unit = (verboseNames) ? "month" : "mo";
if (maxUnits == 1)
{
- return string.Format("{0:0.0} months", months);
+ return FormatPlural(months, unit);
}
else
{
int monthsInteger = (int)Math.Floor(months);
double fraction = months - monthsInteger;
double daysLeft = fraction * DaysInMonth;
- return string.Format("{0} month{1}, {2}",
- monthsInteger, (monthsInteger == 1) ? "" : "s",
- GetApproximateAge(TimeSpan.FromDays(daysLeft), maxUnits - 1));
+ return string.Format("{0} {1}{2}, {3}",
+ monthsInteger, unit, (monthsInteger == 1) ? "" : "s",
+ GetApproximateAge(TimeSpan.FromDays(daysLeft), maxUnits - 1, verboseNames));
}
}
else if (timeSpan.TotalDays > DaysInWeek)
{
double weeks = timeSpan.TotalDays / DaysInWeek;
+ string unit = (verboseNames) ? "week" : "wk";
if (maxUnits == 1)
{
- return string.Format("{0:0.0} weeks", weeks);
+ return FormatPlural(weeks, unit);
}
else
{
int weeksInteger = (int)Math.Floor(weeks);
double fraction = weeks - weeksInteger;
double daysLeft = fraction * DaysInWeek;
- return string.Format("{0} week{1}, {2}",
- weeksInteger, (weeksInteger == 1) ? "" : "s",
- GetApproximateAge(TimeSpan.FromDays(daysLeft), maxUnits - 1));
+ return string.Format("{0} {1}{2}, {3}",
+ weeksInteger, unit, (weeksInteger == 1) ? "" : "s",
+ GetApproximateAge(TimeSpan.FromDays(daysLeft), maxUnits - 1, verboseNames));
}
}
else if (timeSpan.TotalDays > 1)
{
double days = timeSpan.TotalDays;
+ string unit = "day";
if (maxUnits == 1)
{
- return string.Format("{0:0.0} days", days);
+ return FormatPlural(days, unit);
}
else
{
int daysInteger = (int)Math.Floor(days);
double fraction = days - daysInteger;
double hoursLeft = fraction;
- return string.Format("{0} day{1}, {2}",
- daysInteger, (daysInteger == 1) ? "" : "s",
- GetApproximateAge(TimeSpan.FromHours(hoursLeft), maxUnits - 1));
+ return string.Format("{0} {1}{2}, {3}",
+ daysInteger, unit, (daysInteger == 1) ? "" : "s",
+ GetApproximateAge(TimeSpan.FromHours(hoursLeft), maxUnits - 1, verboseNames));
}
}
else if (timeSpan.TotalHours > 1)
{
double hours = timeSpan.TotalHours;
+ string unit = (verboseNames) ? "hour" : "hr";
if (maxUnits == 1)
{
- return string.Format("{0:0.0} hours", hours);
+ return FormatPlural(hours, unit);
}
else
{
int hoursInteger = (int)Math.Floor(hours);
double fraction = hours - hoursInteger;
double minutesLeft = fraction;
- return string.Format("{0} hour{1}, {2}",
- hoursInteger, (hoursInteger == 1) ? "" : "s",
+ return string.Format("{0} {1}{2}, {3}",
+ hoursInteger, unit, (hoursInteger == 1) ? "" : "s",
GetApproximateAge(TimeSpan.FromMinutes(minutesLeft), maxUnits - 1));
}
}
else if (timeSpan.TotalMinutes > 1)
{
double minutes = timeSpan.TotalMinutes;
+ string unit = (verboseNames) ? "minute" : "min";
if (maxUnits == 1)
{
- return string.Format("{0:0.0} minutes", minutes);
+ return FormatPlural(minutes, unit);
}
else
{
int minutesInteger = (int)Math.Floor(minutes);
double fraction = minutes - minutesInteger;
double secondsLeft = fraction;
- return string.Format("{0} minute{1}, {2}",
- minutesInteger, (minutesInteger == 1) ? "" : "s",
+ return string.Format("{0} {1}{2}, {3}",
+ minutesInteger, unit, (minutesInteger == 1) ? "" : "s",
GetApproximateAge(TimeSpan.FromSeconds(secondsLeft), maxUnits - 1));
}
}
else if (timeSpan.TotalSeconds > 1)
{
double seconds = timeSpan.TotalSeconds;
+ string unit = (verboseNames) ? "second" : "sec";
if (maxUnits == 1)
{
- return string.Format("{0:0.0} seconds", seconds);
+ return FormatPlural(seconds, unit);
}
else
{
int secondsInteger = (int)Math.Floor(seconds);
double fraction = seconds - secondsInteger;
double millisecondsLeft = fraction;
- return string.Format("{0} second{1}, {2}",
- secondsInteger, (secondsInteger == 1) ? "" : "s",
+ return string.Format("{0} {1}{2}, {3}",
+ secondsInteger, unit, (secondsInteger == 1) ? "" : "s",
GetApproximateAge(TimeSpan.FromMilliseconds(millisecondsLeft), maxUnits - 1));
}
}
else
{
- return string.Format("{0:0.0} milliseconds", timeSpan.TotalMilliseconds);
+ string unit = (verboseNames) ? "milliseconds" : "ms";
+ string s = string.Format("{0:0.0}", timeSpan.TotalMilliseconds);
+ if (s.Length >= "1000.0".Length)
+ {
+ double seconds = timeSpan.TotalSeconds;
+ unit = (verboseNames) ? "second" : "sec";
+ return FormatPlural(seconds, unit);
+ }
+ return string.Format("{0:0.0} {1}", timeSpan.TotalMilliseconds, unit);
}
}
+ private static string FormatPlural(double value, string unit)
+ {
+ string strValue = string.Format("{0:0.0}", value);
+
+ if (strValue == "1.0") { return string.Format("1 {0}", unit); }
+ else if (strValue[strValue.Length - 1] == '0')
+ {
+ int intValue = (int)value;
+ return string.Format("{0} {1}{2}", intValue, unit, (intValue == 1) ? "" : "s");
+ }
+ else
+ {
+ return string.Format("{0:0.0} {1}s", value, unit);
+ }
+ }
+
public static TimeSpan Interval(DateTime dt1, DateTime dt2)
{
return (TimeSpan)(dt2 - dt1);
Modified: Trunk/Source/Roam.Test/Roam.Test.csproj
===================================================================
--- Trunk/Source/Roam.Test/Roam.Test.csproj 2008-03-19 08:42:06 UTC (rev 129)
+++ Trunk/Source/Roam.Test/Roam.Test.csproj 2008-03-20 21:26:21 UTC (rev 130)
@@ -564,7 +564,7 @@
<DependentUpon>TextBoxFilteredListTest.cs</DependentUpon>
</Compile>
<Compile Include="UI\Controls\FontTest.cs">
- <SubType>Component</SubType>
+ <SubType>Form</SubType>
</Compile>
<Compile Include="UI\Controls\FontTest.Designer.cs">
<DependentUpon>FontTest.cs</DependentUpon>
@@ -702,7 +702,7 @@
<DependentUpon>SystemColorTest.cs</DependentUpon>
</Compile>
<Compile Include="UI\Controls\TabControlTest.cs">
- <SubType>Form</SubType>
+ <SubType>Component</SubType>
</Compile>
<Compile Include="UI\Controls\TabControlTest.Designer.cs">
<DependentUpon>TabControlTest.cs</DependentUpon>
Modified: Trunk/Source/Roam.UI/Forms/RoamForm.cs
===================================================================
--- Trunk/Source/Roam.UI/Forms/RoamForm.cs 2008-03-19 08:42:06 UTC (rev 129)
+++ Trunk/Source/Roam.UI/Forms/RoamForm.cs 2008-03-20 21:26:21 UTC (rev 130)
@@ -19,6 +19,7 @@
using System.Drawing;
using System.Text;
using System.Windows.Forms;
+using System.Diagnostics;
namespace Roam.UI.Forms
{
@@ -150,6 +151,7 @@
get { return base.DialogResult; }
set
{
+ bool threwException = false;
try
{
base.DialogResult = value;
@@ -158,6 +160,8 @@
{
//consume argument exception
//see https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=328786
+ Debug.WriteLine(string.Format("RoamForm.DialogResult={0} : Exception: {1}", value, ae.Message));
+ threwException = true;
}
//The following is a workaround relating to the differences between form.ShowDialog()
@@ -173,7 +177,24 @@
//In addition, if a form was shown via form.Show(), setting its DialogResult
//has no effect. This changes that behavior such that it is consistent with
//form.ShowDialog()
- if (!IsClosed) { this.Close(); }
+ try
+ {
+ if (!IsClosed) { this.Close(); }
+ }
+ catch (ArgumentException ae)
+ {
+ //consume argument exception
+ //see https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=328786
+ Debug.WriteLine(string.Format("RoamForm.DialogResult={0} : Exception: {1}", value, ae.Message));
+ threwException = true;
+ }
+
+ // If the dialog threw an exception on close then we probably ran into
+ // the bug described here: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=328786
+ // The only way I found to close a form at all in this case is to call dispose
+ // This is incredibly hacky and has some side effects but is the only known
+ // way to effectively close the dialog
+ if (threwException) { this.Dispose(); }
}
}
#endregion Properties
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jon...@us...> - 2008-03-19 08:42:14
|
Revision: 129
http://roam.svn.sourceforge.net/roam/?rev=129&view=rev
Author: jonfroehlich
Date: 2008-03-19 01:42:06 -0700 (Wed, 19 Mar 2008)
Log Message:
-----------
trying to fix https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=328786 in RoamForm
Modified Paths:
--------------
Trunk/Source/Roam.Test/Roam.Test.csproj
Trunk/Source/Roam.UI/Forms/RoamForm.cs
Modified: Trunk/Source/Roam.Test/Roam.Test.csproj
===================================================================
--- Trunk/Source/Roam.Test/Roam.Test.csproj 2008-03-16 08:40:19 UTC (rev 128)
+++ Trunk/Source/Roam.Test/Roam.Test.csproj 2008-03-19 08:42:06 UTC (rev 129)
@@ -564,7 +564,7 @@
<DependentUpon>TextBoxFilteredListTest.cs</DependentUpon>
</Compile>
<Compile Include="UI\Controls\FontTest.cs">
- <SubType>Form</SubType>
+ <SubType>Component</SubType>
</Compile>
<Compile Include="UI\Controls\FontTest.Designer.cs">
<DependentUpon>FontTest.cs</DependentUpon>
Modified: Trunk/Source/Roam.UI/Forms/RoamForm.cs
===================================================================
--- Trunk/Source/Roam.UI/Forms/RoamForm.cs 2008-03-16 08:40:19 UTC (rev 128)
+++ Trunk/Source/Roam.UI/Forms/RoamForm.cs 2008-03-19 08:42:06 UTC (rev 129)
@@ -35,7 +35,7 @@
private bool _isModal = false;
private bool _isClosed = false;
private bool _isDisposed = false;
- private object _objLock = new object();
+ //private object _objLock = new object();
#endregion Fields
#region Constructors
@@ -46,58 +46,103 @@
#endregion Constructors
#region Properties
+ //public bool IsClosed
+ //{
+ // get
+ // {
+ // lock (_objLock)
+ // {
+ // return _isClosed;
+ // }
+ // }
+ // protected set
+ // {
+ // lock (_objLock)
+ // {
+ // _isClosed = value;
+ // }
+ // }
+ //}
+
+ //public bool IsDisposed
+ //{
+ // get
+ // {
+ // lock (_objLock)
+ // {
+ // return _isDisposed;
+ // }
+ // }
+ // private set
+ // {
+ // lock (_objLock)
+ // {
+ // _isDisposed = value;
+ // }
+ // }
+ //}
+
+ //public bool IsModal
+ //{
+ // get
+ // {
+ // lock (_objLock)
+ // {
+ // return _isModal;
+ // }
+ // }
+ // private set
+ // {
+ // lock (_objLock)
+ // {
+ // _isModal = value;
+ // }
+ // }
+ //}
+
+ //public new DialogResult DialogResult
+ //{
+ // get { return base.DialogResult; }
+ // set
+ // {
+ // lock (_objLock)
+ // {
+ // base.DialogResult = value;
+
+ // //The following is a workaround relating to the differences between form.ShowDialog()
+ // //and Application2.ShowDialog()
+ // //
+ // //Setting the DialogResult property with a value from the DialogResult enumeration
+ // //sets the value of the dialog box result for the form, hides the modal
+ // //dialog box, and returns control to the calling form. However, this does
+ // //NOT work properly if the form was started using Application2.ShowDialog.
+ // //In this case, setting the dialog result does not infact hide the modal dialog
+ // //box. So we will do that ourselves here.
+ // //
+ // //In addition, if a form was shown via form.Show(), setting its DialogResult
+ // //has no effect. This changes that behavior such that it is consistent with
+ // //form.ShowDialog()
+ // if (!IsClosed) { this.Close(); }
+ // }
+ // }
+ //}
+
public bool IsClosed
{
- get
- {
- lock (_objLock)
- {
- return _isClosed;
- }
- }
- protected set
- {
- lock (_objLock)
- {
- _isClosed = value;
- }
- }
+ get { return _isClosed; }
+ protected set { _isClosed = value; }
}
public bool IsDisposed
{
- get
- {
- lock (_objLock)
- {
- return _isDisposed;
- }
- }
- private set
- {
- lock (_objLock)
- {
- _isDisposed = value;
- }
- }
+ get { return _isDisposed; }
+ private set { _isDisposed = value; }
}
public bool IsModal
{
- get
- {
- lock (_objLock)
- {
- return _isModal;
- }
- }
- private set
- {
- lock (_objLock)
- {
- _isModal = value;
- }
- }
+ get { return _isModal; }
+ private set { _isModal = value; }
}
public new DialogResult DialogResult
@@ -105,25 +150,30 @@
get { return base.DialogResult; }
set
{
- lock (_objLock)
+ try
{
base.DialogResult = value;
+ }
+ catch (ArgumentException ae)
+ {
+ //consume argument exception
+ //see https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=328786
+ }
- //The following is a workaround relating to the differences between form.ShowDialog()
- //and Application2.ShowDialog()
- //
- //Setting the DialogResult property with a value from the DialogResult enumeration
- //sets the value of the dialog box result for the form, hides the modal
- //dialog box, and returns control to the calling form. However, this does
- //NOT work properly if the form was started using Application2.ShowDialog.
- //In this case, setting the dialog result does not infact hide the modal dialog
- //box. So we will do that ourselves here.
- //
- //In addition, if a form was shown via form.Show(), setting its DialogResult
- //has no effect. This changes that behavior such that it is consistent with
- //form.ShowDialog()
- if (!IsClosed) { this.Close(); }
- }
+ //The following is a workaround relating to the differences between form.ShowDialog()
+ //and Application2.ShowDialog()
+ //
+ //Setting the DialogResult property with a value from the DialogResult enumeration
+ //sets the value of the dialog box result for the form, hides the modal
+ //dialog box, and returns control to the calling form. However, this does
+ //NOT work properly if the form was started using Application2.ShowDialog.
+ //In this case, setting the dialog result does not infact hide the modal dialog
+ //box. So we will do that ourselves here.
+ //
+ //In addition, if a form was shown via form.Show(), setting its DialogResult
+ //has no effect. This changes that behavior such that it is consistent with
+ //form.ShowDialog()
+ if (!IsClosed) { this.Close(); }
}
}
#endregion Properties
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jon...@us...> - 2008-03-16 08:40:21
|
Revision: 128
http://roam.svn.sourceforge.net/roam/?rev=128&view=rev
Author: jonfroehlich
Date: 2008-03-16 01:40:19 -0700 (Sun, 16 Mar 2008)
Log Message:
-----------
Modified Paths:
--------------
Trunk/Source/Roam.Test/Roam.Test.csproj
Modified: Trunk/Source/Roam.Test/Roam.Test.csproj
===================================================================
--- Trunk/Source/Roam.Test/Roam.Test.csproj 2008-03-16 08:28:04 UTC (rev 127)
+++ Trunk/Source/Roam.Test/Roam.Test.csproj 2008-03-16 08:40:19 UTC (rev 128)
@@ -564,7 +564,7 @@
<DependentUpon>TextBoxFilteredListTest.cs</DependentUpon>
</Compile>
<Compile Include="UI\Controls\FontTest.cs">
- <SubType>Component</SubType>
+ <SubType>Form</SubType>
</Compile>
<Compile Include="UI\Controls\FontTest.Designer.cs">
<DependentUpon>FontTest.cs</DependentUpon>
@@ -702,7 +702,7 @@
<DependentUpon>SystemColorTest.cs</DependentUpon>
</Compile>
<Compile Include="UI\Controls\TabControlTest.cs">
- <SubType>Component</SubType>
+ <SubType>Form</SubType>
</Compile>
<Compile Include="UI\Controls\TabControlTest.Designer.cs">
<DependentUpon>TabControlTest.cs</DependentUpon>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jon...@us...> - 2008-03-16 08:28:09
|
Revision: 127
http://roam.svn.sourceforge.net/roam/?rev=127&view=rev
Author: jonfroehlich
Date: 2008-03-16 01:28:04 -0700 (Sun, 16 Mar 2008)
Log Message:
-----------
roam.test csproj was modified some how
Modified Paths:
--------------
Trunk/Source/Roam.Test/Roam.Test.csproj
Modified: Trunk/Source/Roam.Test/Roam.Test.csproj
===================================================================
--- Trunk/Source/Roam.Test/Roam.Test.csproj 2008-03-14 19:31:26 UTC (rev 126)
+++ Trunk/Source/Roam.Test/Roam.Test.csproj 2008-03-16 08:28:04 UTC (rev 127)
@@ -564,7 +564,7 @@
<DependentUpon>TextBoxFilteredListTest.cs</DependentUpon>
</Compile>
<Compile Include="UI\Controls\FontTest.cs">
- <SubType>Form</SubType>
+ <SubType>Component</SubType>
</Compile>
<Compile Include="UI\Controls\FontTest.Designer.cs">
<DependentUpon>FontTest.cs</DependentUpon>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jon...@us...> - 2008-03-14 19:31:28
|
Revision: 126
http://roam.svn.sourceforge.net/roam/?rev=126&view=rev
Author: jonfroehlich
Date: 2008-03-14 12:31:26 -0700 (Fri, 14 Mar 2008)
Log Message:
-----------
added GetApproximateAge related methods in TimeUtils
Modified Paths:
--------------
Trunk/Source/Roam.Common/Utils/TimeUtils.cs
Modified: Trunk/Source/Roam.Common/Utils/TimeUtils.cs
===================================================================
--- Trunk/Source/Roam.Common/Utils/TimeUtils.cs 2008-03-11 19:19:54 UTC (rev 125)
+++ Trunk/Source/Roam.Common/Utils/TimeUtils.cs 2008-03-14 19:31:26 UTC (rev 126)
@@ -29,6 +29,152 @@
{
public static readonly TimeSpan TimeSpanInfinite = new TimeSpan(0, 0, 0, 0, -1);
+ private static readonly int DaysInYear = 365;
+ private static readonly int DaysInMonth = 30;
+ private static readonly int DaysInWeek = 7;
+ private static readonly int HoursInDay = 24;
+ private static readonly int MinutesInHour = 60;
+ private static readonly int SecondsInMinute = 60;
+ private static readonly int MillisecondsInSecond = 1000;
+
+ public static string GetApproximateAge(TimeSpan timeSpan)
+ {
+ return GetApproximateAge(timeSpan, 1);
+ }
+
+ /// <summary>
+ /// Very approximate age (doesn't calculate leap year, assumes all months are 30 days long, etc.)
+ /// </summary>
+ /// <param name="timeSpan"></param>
+ /// <param name="maxUnits"></param>
+ /// <returns></returns>
+ public static string GetApproximateAge(TimeSpan timeSpan, int maxUnits)
+ {
+ if (timeSpan.TotalDays > DaysInYear)
+ {
+ double years = timeSpan.TotalDays / DaysInYear;
+ if (maxUnits == 1)
+ {
+ return string.Format("{0:0.0} years", years);
+ }
+ else
+ {
+ int yearsInteger = (int)Math.Floor(years);
+ double fraction = years - yearsInteger;
+ double daysLeft = fraction * DaysInYear;
+ return string.Format("{0} year{1}, {2}",
+ yearsInteger, (yearsInteger == 1) ? "" : "s",
+ GetApproximateAge(TimeSpan.FromDays(daysLeft), maxUnits - 1));
+ }
+ }
+ else if (timeSpan.TotalDays > DaysInMonth)
+ {
+ double months = timeSpan.TotalDays / DaysInMonth;
+ if (maxUnits == 1)
+ {
+ return string.Format("{0:0.0} months", months);
+ }
+ else
+ {
+ int monthsInteger = (int)Math.Floor(months);
+ double fraction = months - monthsInteger;
+ double daysLeft = fraction * DaysInMonth;
+ return string.Format("{0} month{1}, {2}",
+ monthsInteger, (monthsInteger == 1) ? "" : "s",
+ GetApproximateAge(TimeSpan.FromDays(daysLeft), maxUnits - 1));
+ }
+ }
+ else if (timeSpan.TotalDays > DaysInWeek)
+ {
+ double weeks = timeSpan.TotalDays / DaysInWeek;
+ if (maxUnits == 1)
+ {
+ return string.Format("{0:0.0} weeks", weeks);
+ }
+ else
+ {
+ int weeksInteger = (int)Math.Floor(weeks);
+ double fraction = weeks - weeksInteger;
+ double daysLeft = fraction * DaysInWeek;
+ return string.Format("{0} week{1}, {2}",
+ weeksInteger, (weeksInteger == 1) ? "" : "s",
+ GetApproximateAge(TimeSpan.FromDays(daysLeft), maxUnits - 1));
+ }
+ }
+ else if (timeSpan.TotalDays > 1)
+ {
+ double days = timeSpan.TotalDays;
+ if (maxUnits == 1)
+ {
+ return string.Format("{0:0.0} days", days);
+ }
+ else
+ {
+ int daysInteger = (int)Math.Floor(days);
+ double fraction = days - daysInteger;
+ double hoursLeft = fraction;
+ return string.Format("{0} day{1}, {2}",
+ daysInteger, (daysInteger == 1) ? "" : "s",
+ GetApproximateAge(TimeSpan.FromHours(hoursLeft), maxUnits - 1));
+ }
+ }
+ else if (timeSpan.TotalHours > 1)
+ {
+ double hours = timeSpan.TotalHours;
+ if (maxUnits == 1)
+ {
+ return string.Format("{0:0.0} hours", hours);
+ }
+ else
+ {
+ int hoursInteger = (int)Math.Floor(hours);
+ double fraction = hours - hoursInteger;
+ double minutesLeft = fraction;
+ return string.Format("{0} hour{1}, {2}",
+ hoursInteger, (hoursInteger == 1) ? "" : "s",
+ GetApproximateAge(TimeSpan.FromMinutes(minutesLeft), maxUnits - 1));
+ }
+ }
+ else if (timeSpan.TotalMinutes > 1)
+ {
+ double minutes = timeSpan.TotalMinutes;
+ if (maxUnits == 1)
+ {
+ return string.Format("{0:0.0} minutes", minutes);
+ }
+ else
+ {
+ int minutesInteger = (int)Math.Floor(minutes);
+ double fraction = minutes - minutesInteger;
+ double secondsLeft = fraction;
+ return string.Format("{0} minute{1}, {2}",
+ minutesInteger, (minutesInteger == 1) ? "" : "s",
+ GetApproximateAge(TimeSpan.FromSeconds(secondsLeft), maxUnits - 1));
+ }
+ }
+ else if (timeSpan.TotalSeconds > 1)
+ {
+ double seconds = timeSpan.TotalSeconds;
+ if (maxUnits == 1)
+ {
+ return string.Format("{0:0.0} seconds", seconds);
+ }
+ else
+ {
+ int secondsInteger = (int)Math.Floor(seconds);
+ double fraction = seconds - secondsInteger;
+ double millisecondsLeft = fraction;
+ return string.Format("{0} second{1}, {2}",
+ secondsInteger, (secondsInteger == 1) ? "" : "s",
+ GetApproximateAge(TimeSpan.FromMilliseconds(millisecondsLeft), maxUnits - 1));
+ }
+ }
+ else
+ {
+ return string.Format("{0:0.0} milliseconds", timeSpan.TotalMilliseconds);
+ }
+ }
+
public static TimeSpan Interval(DateTime dt1, DateTime dt2)
{
return (TimeSpan)(dt2 - dt1);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jon...@us...> - 2008-03-11 19:19:57
|
Revision: 125
http://roam.svn.sourceforge.net/roam/?rev=125&view=rev
Author: jonfroehlich
Date: 2008-03-11 12:19:54 -0700 (Tue, 11 Mar 2008)
Log Message:
-----------
updated ColorUtils to take a seed
Modified Paths:
--------------
Trunk/Source/Roam.Common/Utils/ColorUtils.cs
Trunk/Source/Roam.Test/Roam.Test.csproj
Property Changed:
----------------
Trunk/Source/
Property changes on: Trunk/Source
___________________________________________________________________
Name: svn:ignore
- Roam.ncb
+ Roam.ncb
Roam.suo
Modified: Trunk/Source/Roam.Common/Utils/ColorUtils.cs
===================================================================
--- Trunk/Source/Roam.Common/Utils/ColorUtils.cs 2008-03-11 19:17:09 UTC (rev 124)
+++ Trunk/Source/Roam.Common/Utils/ColorUtils.cs 2008-03-11 19:19:54 UTC (rev 125)
@@ -78,6 +78,12 @@
return Color.FromArgb(rand.Next(255), rand.Next(255), rand.Next(255));
}
+ public static Color GetRandomColor(int seed)
+ {
+ Random rand = new Random(seed);
+ return Color.FromArgb(rand.Next(255), rand.Next(255), rand.Next(255));
+ }
+
public static uint ToRgb(Color c)
{
// Format the value of color - 0x00bbggrr
Modified: Trunk/Source/Roam.Test/Roam.Test.csproj
===================================================================
--- Trunk/Source/Roam.Test/Roam.Test.csproj 2008-03-11 19:17:09 UTC (rev 124)
+++ Trunk/Source/Roam.Test/Roam.Test.csproj 2008-03-11 19:19:54 UTC (rev 125)
@@ -702,7 +702,7 @@
<DependentUpon>SystemColorTest.cs</DependentUpon>
</Compile>
<Compile Include="UI\Controls\TabControlTest.cs">
- <SubType>Form</SubType>
+ <SubType>Component</SubType>
</Compile>
<Compile Include="UI\Controls\TabControlTest.Designer.cs">
<DependentUpon>TabControlTest.cs</DependentUpon>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jon...@us...> - 2008-03-11 19:17:11
|
Revision: 124
http://roam.svn.sourceforge.net/roam/?rev=124&view=rev
Author: jonfroehlich
Date: 2008-03-11 12:17:09 -0700 (Tue, 11 Mar 2008)
Log Message:
-----------
updated RoamForm to be threadsafe (hopefully)
Modified Paths:
--------------
Trunk/Source/Roam.UI/Forms/RoamForm.cs
Modified: Trunk/Source/Roam.UI/Forms/RoamForm.cs
===================================================================
--- Trunk/Source/Roam.UI/Forms/RoamForm.cs 2008-03-11 06:59:31 UTC (rev 123)
+++ Trunk/Source/Roam.UI/Forms/RoamForm.cs 2008-03-11 19:17:09 UTC (rev 124)
@@ -31,30 +31,73 @@
/// <author>Jon Froehlich</author>
public partial class RoamForm : Form
{
+ #region Fields
private bool _isModal = false;
private bool _isClosed = false;
private bool _isDisposed = false;
+ private object _objLock = new object();
+ #endregion Fields
+ #region Constructors
public RoamForm()
{
InitializeComponent();
}
+ #endregion Constructors
#region Properties
public bool IsClosed
{
- get { return _isClosed; }
- protected set { _isClosed = value; }
+ get
+ {
+ lock (_objLock)
+ {
+ return _isClosed;
+ }
+ }
+ protected set
+ {
+ lock (_objLock)
+ {
+ _isClosed = value;
+ }
+ }
}
public bool IsDisposed
{
- get { return _isDisposed; }
+ get
+ {
+ lock (_objLock)
+ {
+ return _isDisposed;
+ }
+ }
+ private set
+ {
+ lock (_objLock)
+ {
+ _isDisposed = value;
+ }
+ }
}
public bool IsModal
{
- get { return _isModal; }
+ get
+ {
+ lock (_objLock)
+ {
+ return _isModal;
+ }
+ }
+ private set
+ {
+ lock (_objLock)
+ {
+ _isModal = value;
+ }
+ }
}
public new DialogResult DialogResult
@@ -62,22 +105,25 @@
get { return base.DialogResult; }
set
{
- base.DialogResult = value;
+ lock (_objLock)
+ {
+ base.DialogResult = value;
- //The following is a workaround relating to the differences between form.ShowDialog()
- //and Application2.ShowDialog()
- //
- //Setting the DialogResult property with a value from the DialogResult enumeration
- //sets the value of the dialog box result for the form, hides the modal
- //dialog box, and returns control to the calling form. However, this does
- //NOT work properly if the form was started using Application2.ShowDialog.
- //In this case, setting the dialog result does not infact hide the modal dialog
- //box. So we will do that ourselves here.
- //
- //In addition, if a form was shown via form.Show(), setting its DialogResult
- //has no effect. This changes that behavior such that it is consistent with
- //form.ShowDialog()
- if (!_isClosed) { this.Close(); }
+ //The following is a workaround relating to the differences between form.ShowDialog()
+ //and Application2.ShowDialog()
+ //
+ //Setting the DialogResult property with a value from the DialogResult enumeration
+ //sets the value of the dialog box result for the form, hides the modal
+ //dialog box, and returns control to the calling form. However, this does
+ //NOT work properly if the form was started using Application2.ShowDialog.
+ //In this case, setting the dialog result does not infact hide the modal dialog
+ //box. So we will do that ourselves here.
+ //
+ //In addition, if a form was shown via form.Show(), setting its DialogResult
+ //has no effect. This changes that behavior such that it is consistent with
+ //form.ShowDialog()
+ if (!IsClosed) { this.Close(); }
+ }
}
}
#endregion Properties
@@ -85,15 +131,15 @@
#region Public Methods
public new DialogResult ShowDialog()
{
- _isModal = true;
+ IsModal = true;
DialogResult dr = base.ShowDialog();
- _isModal = false;
+ IsModal = false;
return dr;
}
public new void Show()
{
- _isModal = false;
+ IsModal = false;
base.Show();
}
#endregion Public Methods
@@ -101,7 +147,7 @@
#region Protected Methods
protected override void OnClosed(EventArgs e)
{
- _isClosed = true;
+ IsClosed = true;
base.OnClosed(e);
}
#endregion Protected Methods
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jon...@us...> - 2008-03-11 06:59:35
|
Revision: 123
http://roam.svn.sourceforge.net/roam/?rev=123&view=rev
Author: jonfroehlich
Date: 2008-03-10 23:59:31 -0700 (Mon, 10 Mar 2008)
Log Message:
-----------
removed Roam.suo
Modified Paths:
--------------
Trunk/Source/Roam.Test/Roam.Test.csproj
Removed Paths:
-------------
Trunk/Source/Roam.suo
Modified: Trunk/Source/Roam.Test/Roam.Test.csproj
===================================================================
--- Trunk/Source/Roam.Test/Roam.Test.csproj 2008-03-06 15:44:44 UTC (rev 122)
+++ Trunk/Source/Roam.Test/Roam.Test.csproj 2008-03-11 06:59:31 UTC (rev 123)
@@ -702,7 +702,7 @@
<DependentUpon>SystemColorTest.cs</DependentUpon>
</Compile>
<Compile Include="UI\Controls\TabControlTest.cs">
- <SubType>Component</SubType>
+ <SubType>Form</SubType>
</Compile>
<Compile Include="UI\Controls\TabControlTest.Designer.cs">
<DependentUpon>TabControlTest.cs</DependentUpon>
Deleted: 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.
|
|
From: <jon...@us...> - 2008-03-06 15:44:49
|
Revision: 122
http://roam.svn.sourceforge.net/roam/?rev=122&view=rev
Author: jonfroehlich
Date: 2008-03-06 07:44:44 -0800 (Thu, 06 Mar 2008)
Log Message:
-----------
updated utility functions
Modified Paths:
--------------
Trunk/Source/Roam/Utils/DeviceUtils.cs
Trunk/Source/Roam/Utils/PowerUtils.cs
Trunk/Source/Roam.Common/Utils/TimeUtils.cs
Trunk/Source/Roam.UI/Forms/SplashForm.cs
Trunk/Source/Roam.UI/Utils/DrawingUtils.cs
Trunk/Source/Roam.suo
Modified: Trunk/Source/Roam/Utils/DeviceUtils.cs
===================================================================
--- Trunk/Source/Roam/Utils/DeviceUtils.cs 2008-03-02 00:55:29 UTC (rev 121)
+++ Trunk/Source/Roam/Utils/DeviceUtils.cs 2008-03-06 15:44:44 UTC (rev 122)
@@ -17,6 +17,7 @@
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
+using Microsoft.WindowsMobile.Status;
namespace Roam.Utils
{
@@ -33,6 +34,13 @@
/// <author>Jon Froehlich</author>
public static class DeviceUtils
{
+ public static bool IsPhoneSilent()
+ {
+ string phoneProfile = SystemState.PhoneProfile;
+ return phoneProfile.IndexOf("Silent") != -1 ||
+ phoneProfile.IndexOf("Meeting") != -1;
+ }
+
/// <summary>
/// This function returns the amount of time, in milliseconds, that the
/// system has been idle.
Modified: Trunk/Source/Roam/Utils/PowerUtils.cs
===================================================================
--- Trunk/Source/Roam/Utils/PowerUtils.cs 2008-03-02 00:55:29 UTC (rev 121)
+++ Trunk/Source/Roam/Utils/PowerUtils.cs 2008-03-06 15:44:44 UTC (rev 122)
@@ -37,6 +37,38 @@
public const uint POWER_FORCE = 0x00001000;
public const int ERROR_SUCCESS = 0;
+ public static bool IsDeviceIdleMessage(PowerBroadcast powerBroadcast)
+ {
+ return IsDeviceIdleMessage(powerBroadcast.GetSystemPowerStateAsString());
+ }
+
+ //List of power states from http://peterfoot.net/HowToGetSystemPowerStateNameAndFlags.aspx
+ // [On] = 0x10000 // on state
+ // Off = 0x20000 // no power, full off
+ // Critical = 0x40000 // critical off
+ // Boot = 0x80000 // boot state
+ // Idle = 0x100000 // idle state
+ // Suspend = 0x200000 // suspend state
+ // Unattended = 0x400000 // Unattended state.
+ // Reset = 0x800000 // reset state
+ // UserIdle = 0x1000000 // user idle state
+ // BackLightOn = 0x2000000 // device screen backlight on
+ // Password = 0x10000000 // This state is password protected.
+ public static bool IsDeviceIdleMessage(string powerMessage)
+ {
+ //device idle messages I have seen:
+ // backlightoff
+ // screenoff
+ // useridle
+ return powerMessage.IndexOf("idle") != -1 || powerMessage.IndexOf("off") != -1;
+ }
+
+ public static bool IsDeviceCurrentlyIdle()
+ {
+ string powerStateName = PowerUtils.GetSystemPowerState().PowerStateName;
+ return IsDeviceIdleMessage(powerStateName);
+ }
+
// allows a null psState
[DllImport("coredll.dll", SetLastError = true)]
public static extern int SetSystemPowerState(IntPtr psState, PowerStateFlags flags, uint Options);
Modified: Trunk/Source/Roam.Common/Utils/TimeUtils.cs
===================================================================
--- Trunk/Source/Roam.Common/Utils/TimeUtils.cs 2008-03-02 00:55:29 UTC (rev 121)
+++ Trunk/Source/Roam.Common/Utils/TimeUtils.cs 2008-03-06 15:44:44 UTC (rev 122)
@@ -117,17 +117,45 @@
}
public static readonly DateTime UNIX_START_DATE = new DateTime(1970, 1, 1, 0, 0, 0);
+ public static readonly DateTime JAVA_START_DATE = new DateTime(1970, 1, 1, 0, 0, 0);
+ /// <summary>
+ ///
+ /// </summary>
+ /// <param name="dateTime"></param>
+ /// <returns>Unix time in seconds</returns>
public static long ConvertToUnixTimeStamp(DateTime dateTime)
{
TimeSpan ts = UNIX_START_DATE - UNIX_START_DATE;
return (long)ts.TotalSeconds;
}
- public static DateTime ConvertToDateTime(long unixTimeStamp)
+ /// <summary>
+ /// Takes in unix time stamp in seconds
+ /// </summary>
+ /// <param name="unixTimeStamp"></param>
+ /// <returns></returns>
+ public static DateTime ConvertFromUnixTime(long unixTimeStamp)
{
return UNIX_START_DATE.AddSeconds(unixTimeStamp);
}
+ /// <summary>
+ /// Converts to milliseconds
+ /// </summary>
+ /// <param name="dateTime"></param>
+ /// <returns></returns>
+ public static long ConvertToJavaTimeStamp(DateTime dateTime)
+ {
+ // the starting time of Java\x92s system
+ long timeStamp = (long)((TimeSpan)(dateTime - JAVA_START_DATE)).TotalMilliseconds;
+ return timeStamp;
+ }
+
+ public static DateTime ConvertFromJavaTimeStamp(long javaTimeStamp)
+ {
+ return JAVA_START_DATE.AddMilliseconds(javaTimeStamp);
+ }
+
}
}
Modified: Trunk/Source/Roam.UI/Forms/SplashForm.cs
===================================================================
--- Trunk/Source/Roam.UI/Forms/SplashForm.cs 2008-03-02 00:55:29 UTC (rev 121)
+++ Trunk/Source/Roam.UI/Forms/SplashForm.cs 2008-03-06 15:44:44 UTC (rev 122)
@@ -30,6 +30,7 @@
using System.Diagnostics;
using Roam.Common.Utils;
using Roam.UI.Utils;
+using OpenNETCF.Windows.Forms;
namespace Roam.UI.Forms
{
@@ -43,7 +44,7 @@
public partial class SplashForm : Form, IProgress
{
#region Delegates
- private delegate void NoParamsDelegate();
+ private delegate void EmptyDelegate();
private delegate void IntParamDelegate(int i);
#endregion Delegates
@@ -56,10 +57,23 @@
private Color _logColor = Color.White;
private System.Windows.Forms.Timer _animationTimer = new System.Windows.Forms.Timer();
private MemoryAppender _memoryAppender = null;
- private NoParamsDelegate _invalidateDelegate;
+ private EmptyDelegate _invalidateDelegate;
private bool _drawAlphaLayer = true;
- private int _alphaValue = 128;
- private Color _alphaColor = Color.Black;
+ private int _overlayAlphaValue = 128;
+ private Color _overlayAlphaColor = Color.Black;
+
+ private bool _drawLog = true;
+
+ private Rectangle _overlayBounds;
+ private bool _overlayBoundsSet = false;
+
+ private bool _preferredProgressBarLocationSet = false;
+ private Point _preferredProgressBarLocation;
+
+ private bool _preferredProgressBarSizeSet = false;
+ private Size _preferredProgressBarSize;
+
+ private Point _titleLocation = new Point(2, 2);
#endregion Private Fields
public SplashForm()
@@ -91,8 +105,16 @@
/// </summary>
public Color AlphaLayerColor
{
- get { return _alphaColor; }
- set { _alphaColor = value; }
+ get { return _overlayAlphaColor; }
+ set
+ {
+ if (value != _overlayAlphaColor)
+ {
+ _overlayAlphaColor = value;
+ if (this.InvokeRequired) { this.Invoke(_invalidateDelegate); }
+ else { this.Invalidate(); }
+ }
+ }
}
/// <summary>
@@ -100,8 +122,16 @@
/// </summary>
public int AlphaValue
{
- get { return _alphaValue; }
- set { _alphaValue = value; }
+ get { return _overlayAlphaValue; }
+ set
+ {
+ if (value != _overlayAlphaValue)
+ {
+ _overlayAlphaValue = value;
+ if (this.InvokeRequired) { this.Invoke(_invalidateDelegate); }
+ else { this.Invalidate(); }
+ }
+ }
}
/// <summary>
@@ -110,7 +140,15 @@
public bool DrawAlphaLayer
{
get { return _drawAlphaLayer; }
- set { _drawAlphaLayer = value; }
+ set
+ {
+ if (value != _drawAlphaLayer)
+ {
+ _drawAlphaLayer = value;
+ if (this.InvokeRequired) { this.Invoke(_invalidateDelegate); }
+ else { this.Invalidate(); }
+ }
+ }
}
public int Maximum
@@ -118,18 +156,26 @@
get { return _progressBar.Maximum; }
set
{
- if (this.InvokeRequired)
+ if (value != _progressBar.Maximum)
{
- IntParamDelegate anonDelegate = delegate(int i) { _progressBar.Maximum = i; };
- this.Invoke(anonDelegate, value);
+ if (this.InvokeRequired)
+ {
+ IntParamDelegate anonDelegate = delegate(int i) { _progressBar.Maximum = i; };
+ this.Invoke(anonDelegate, value);
+ }
+ else
+ {
+ _progressBar.Maximum = value;
+ }
}
- else
- {
- _progressBar.Maximum = value;
- }
}
}
+ public ProgressBar2 ProgressBar
+ {
+ get { return _progressBar; }
+ }
+
public int Minimum
{
get { return _progressBar.Minimum; }
@@ -192,11 +238,87 @@
if (_strTitle != value)
{
_strTitle = value;
- this.Invalidate();
+ if (this.InvokeRequired) { this.Invoke(_invalidateDelegate); }
+ else { this.Invalidate(); }
}
}
}
+ public Point TitleLocation
+ {
+ get
+ {
+ return _titleLocation;
+ }
+ set
+ {
+ if (_titleLocation != value)
+ {
+ _titleLocation = value;
+ if (this.InvokeRequired) { this.Invoke(_invalidateDelegate); }
+ else { this.Invalidate(); }
+ }
+ }
+ }
+
+ public Rectangle OverlayBounds
+ {
+ get
+ {
+ return _overlayBoundsSet ? _overlayBounds :
+ new Rectangle(30, 80, this.ClientRectangle.Width - 60,
+ this.ClientRectangle.Height - 110);
+ }
+ set
+ {
+ _overlayBoundsSet = true;
+ if (value != _overlayBounds)
+ {
+ _overlayBounds = value;
+ if (this.InvokeRequired) { this.Invoke(_invalidateDelegate); }
+ else { this.Invalidate(); }
+ }
+ }
+ }
+
+ public Point PreferredProgressBarLocation
+ {
+ get
+ {
+ return _preferredProgressBarLocationSet ? _preferredProgressBarLocation :
+ new Point(30, 50);
+ }
+ set
+ {
+ _preferredProgressBarLocationSet = true;
+ if (value != _preferredProgressBarLocation)
+ {
+ _preferredProgressBarLocation = value;
+ if (this.InvokeRequired) { this.Invoke(_invalidateDelegate); }
+ else { this.Invalidate(); }
+ }
+ }
+ }
+
+ public Size PreferredProgressBarSize
+ {
+ get
+ {
+ return _preferredProgressBarSizeSet ? _preferredProgressBarSize :
+ new Size(this.ClientRectangle.Width - 60, _progressBar.Height);
+ }
+ set
+ {
+ _preferredProgressBarSizeSet = true;
+ if (value != _preferredProgressBarSize)
+ {
+ _preferredProgressBarSize = value;
+ if (this.InvokeRequired) { this.Invoke(_invalidateDelegate); }
+ else { this.Invalidate(); }
+ }
+ }
+ }
+
//public String Log
//{
// get
@@ -231,14 +353,8 @@
if (_logFont != value)
{
_logFont = value;
- if (this.InvokeRequired)
- {
- this.Invoke(_invalidateDelegate);
- }
- else
- {
- this.Invalidate();
- }
+ if (this.InvokeRequired) { this.Invoke(_invalidateDelegate); }
+ else { this.Invalidate(); }
}
}
}
@@ -315,12 +431,13 @@
protected virtual void UpdateLayout(Graphics g)
{
- Point preferredProgressBarLocation = new Point(30, 50);
- Size preferredProgressBarSize = new Size(this.ClientRectangle.Width - 60, _progressBar.Height);
+ Point preferredProgressBarLocation = PreferredProgressBarLocation;
+ Size preferredProgressBarSize = PreferredProgressBarSize;
if (_progressBar.Location != preferredProgressBarLocation)
{
_progressBar.Location = preferredProgressBarLocation;
}
+
if (_progressBar.Size != preferredProgressBarSize)
{
_progressBar.Size = preferredProgressBarSize;
@@ -350,10 +467,6 @@
Brush backBrush = new SolidBrush(this.BackColor);
g.FillRectangle(backBrush, this.ClientRectangle);
- //draw the title
- Brush frontBrush = new SolidBrush(this.ForeColor);
- g.DrawString(Title, this.Font, frontBrush, 2, 2);
-
//draw image
IntPtr hDC = g.GetHdc();
RECT rc = RECT.FromXYWH(0, 0, ClientRectangle.Width, ClientRectangle.Height);
@@ -364,28 +477,34 @@
g.ReleaseHdc(hDC);
//draw the translucent overlay
- Rectangle overlayBounds = new Rectangle(30, 80, this.ClientRectangle.Width - 60,
- this.ClientRectangle.Height - 110);
+ Rectangle overlayBounds = OverlayBounds;
if (_drawAlphaLayer)
{
- DrawTranslucentLayer(_bmpOffScreen, overlayBounds, _alphaColor, _alphaValue);
+ DrawTranslucentLayer(_bmpOffScreen, overlayBounds, _overlayAlphaColor, _overlayAlphaValue);
}
- //draw log
+ //draw the title
+ Brush frontBrush = new SolidBrush(this.ForeColor);
+ g.DrawString(Title, this.Font, frontBrush, _titleLocation.X, _titleLocation.Y);
+
+ //draw log, be aware that we set the clip here.
Brush logFontBrush = new SolidBrush(_logColor);
- StringBuilder sb = new StringBuilder(_logBuffer.Count);
- foreach (String str in _logBuffer)
+ if (_drawLog)
{
- sb.Append(str);
+ StringBuilder sb = new StringBuilder(_logBuffer.Count);
+ foreach (String str in _logBuffer)
+ {
+ sb.Append(str);
+ }
+ String strLog = sb.ToString();
+ SizeF textBounds = g.MeasureString(strLog, _logFont);
+ RectangleF textDrawArea = new RectangleF(overlayBounds.X,
+ overlayBounds.Y + overlayBounds.Height - textBounds.Height,
+ overlayBounds.Width, textBounds.Height);
+ g.Clip = new Region(overlayBounds);
+ g.DrawString(strLog, _logFont, logFontBrush, textDrawArea);
}
- String strLog = sb.ToString();
- SizeF textBounds = g.MeasureString(strLog, _logFont);
- RectangleF textDrawArea = new RectangleF(overlayBounds.X,
- overlayBounds.Y + overlayBounds.Height - textBounds.Height,
- overlayBounds.Width, textBounds.Height);
- g.Clip = new Region(overlayBounds);
- g.DrawString(strLog, _logFont, logFontBrush, textDrawArea);
-
+
pe.Graphics.DrawImage(_bmpOffScreen, 0, 0);
//cleanup
@@ -468,7 +587,7 @@
{
if (InvokeRequired)
{
- NoParamsDelegate performStepDelegate = PerformStep;
+ EmptyDelegate performStepDelegate = PerformStep;
this.Invoke(performStepDelegate);
}
else
Modified: Trunk/Source/Roam.UI/Utils/DrawingUtils.cs
===================================================================
--- Trunk/Source/Roam.UI/Utils/DrawingUtils.cs 2008-03-02 00:55:29 UTC (rev 121)
+++ Trunk/Source/Roam.UI/Utils/DrawingUtils.cs 2008-03-06 15:44:44 UTC (rev 122)
@@ -305,10 +305,16 @@
return ret == 0 ? false : true;
}
- private static Control _control = new Control();
+ private static Control _control = null;
public static SizeF MeasureString(string s, Font font)
{
SizeF sizeText;
+
+ if (_control == null)
+ {
+ _control = new Control();
+ }
+
lock (_control)
{
Graphics g = _control.CreateGraphics();
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.
|
|
From: <jon...@us...> - 2008-03-02 00:55:31
|
Revision: 121
http://roam.svn.sourceforge.net/roam/?rev=121&view=rev
Author: jonfroehlich
Date: 2008-03-01 16:55:29 -0800 (Sat, 01 Mar 2008)
Log Message:
-----------
1. fixed exception issue in SqlCeConnectionManager when HasActiveConnection() was called when _connectionPool was null
2. updated SplashForm to use a solid transparency layer rather than another png
Modified Paths:
--------------
Trunk/Source/Roam.SqlCe/SqlCeConnectionManager.cs
Trunk/Source/Roam.UI/Forms/SplashForm.cs
Trunk/Source/Roam.suo
Modified: Trunk/Source/Roam.SqlCe/SqlCeConnectionManager.cs
===================================================================
--- Trunk/Source/Roam.SqlCe/SqlCeConnectionManager.cs 2008-02-29 20:30:37 UTC (rev 120)
+++ Trunk/Source/Roam.SqlCe/SqlCeConnectionManager.cs 2008-03-02 00:55:29 UTC (rev 121)
@@ -147,7 +147,7 @@
/// <returns></returns>
public static bool HasActiveConnection()
{
- return _connectionPool.HasActiveConnection(Thread.CurrentThread);
+ return (_connectionPool == null) ? false : _connectionPool.HasActiveConnection(Thread.CurrentThread);
}
/// <summary>
@@ -156,7 +156,7 @@
/// <returns></returns>
public static bool HasActiveConnection(Thread thread)
{
- return _connectionPool.HasActiveConnection(thread);
+ return (_connectionPool == null) ? false : _connectionPool.HasActiveConnection(thread);
}
/// <summary>
@@ -168,7 +168,8 @@
{
lock (_objLock)
{
- return _connectionPool.ActiveConnections;
+ return (_connectionPool == null) ?
+ new Dictionary<Thread, SqlCeConnection>(0) : _connectionPool.ActiveConnections;
}
}
@@ -182,12 +183,10 @@
{
if (_connectionPool == null)
{
- InvalidOperationException ioe =
- new InvalidOperationException("The SqlConnectionManager must be initialized before calling GetConnection");
- _log.Error(ioe.Message, ioe);
- throw ioe;
+ return false;
}
- return _connectionPool.Close();
+ bool retVal = _connectionPool.Close();
+ return retVal;
}
}
Modified: Trunk/Source/Roam.UI/Forms/SplashForm.cs
===================================================================
--- Trunk/Source/Roam.UI/Forms/SplashForm.cs 2008-02-29 20:30:37 UTC (rev 120)
+++ Trunk/Source/Roam.UI/Forms/SplashForm.cs 2008-03-02 00:55:29 UTC (rev 121)
@@ -29,6 +29,7 @@
using Roam.Common.Collections;
using System.Diagnostics;
using Roam.Common.Utils;
+using Roam.UI.Utils;
namespace Roam.UI.Forms
{
@@ -41,9 +42,13 @@
/// <author>Jon Froehlich</author>
public partial class SplashForm : Form, IProgress
{
+ #region Delegates
+ private delegate void NoParamsDelegate();
+ private delegate void IntParamDelegate(int i);
+ #endregion Delegates
+
#region Private Fields
private IImage _img;
- private IImage _imgOverlay;
private String _strTitle;
private Buffer<String> _logBuffer = new Buffer<String>(30);
private Bitmap _bmpOffScreen = new Bitmap(1, 1);
@@ -51,9 +56,10 @@
private Color _logColor = Color.White;
private System.Windows.Forms.Timer _animationTimer = new System.Windows.Forms.Timer();
private MemoryAppender _memoryAppender = null;
- private delegate void NoParamsDelegate();
- private NoParamsDelegate _invalidateDelegate;
- private delegate void IntParamDelegate(int i);
+ private NoParamsDelegate _invalidateDelegate;
+ private bool _drawAlphaLayer = true;
+ private int _alphaValue = 128;
+ private Color _alphaColor = Color.Black;
#endregion Private Fields
public SplashForm()
@@ -62,10 +68,7 @@
InitializeComponent();
_invalidateDelegate = Invalidate;
_memoryAppender = (MemoryAppender)LogUtils.GetAppender("StartupAppender");
- //this.BackColor = Color.FromArgb(51, 69, 83);
- _animationTimer.Interval = 1000;
- _animationTimer.Tick += new EventHandler(OnAnimationTimer);
- _animationTimer.Enabled = true;
+ //this.BackColor = Color.FromArgb(51, 69, 83);
}
public SplashForm(String strImageFile)
@@ -74,21 +77,42 @@
new ImagingFactory().CreateImageFromFile(strImageFile, out _img);
}
- public SplashForm(String strImageFile, String strOverlayImageFile)
- : this(strImageFile)
- {
- new ImagingFactory().CreateImageFromFile(strOverlayImageFile, out _imgOverlay);
- }
-
- public SplashForm(Stream imageStream, Stream imageOverlayStream)
+ public SplashForm(Stream imageStream)
: this()
{
ImagingFactory imagingFactory = new ImagingFactory();
imagingFactory.CreateImageFromStream(new StreamOnFile(imageStream), out _img);
- imagingFactory.CreateImageFromStream(new StreamOnFile(imageOverlayStream), out _imgOverlay);
}
#region Properties
+
+ /// <summary>
+ /// Gets or sets the alpha layer color.
+ /// </summary>
+ public Color AlphaLayerColor
+ {
+ get { return _alphaColor; }
+ set { _alphaColor = value; }
+ }
+
+ /// <summary>
+ /// Gets or sets the alpha value out of 255.
+ /// </summary>
+ public int AlphaValue
+ {
+ get { return _alphaValue; }
+ set { _alphaValue = value; }
+ }
+
+ /// <summary>
+ /// Gets or sets whether to draw the alpha layer.
+ /// </summary>
+ public bool DrawAlphaLayer
+ {
+ get { return _drawAlphaLayer; }
+ set { _drawAlphaLayer = value; }
+ }
+
public int Maximum
{
get { return _progressBar.Maximum; }
@@ -260,10 +284,18 @@
// Shut down the form
this.Close();
}
-
#endregion Public Methods
#region Protected Methods
+ protected override void OnLoad(EventArgs e)
+ {
+ _animationTimer.Interval = 1000;
+ _animationTimer.Tick += new EventHandler(OnAnimationTimer);
+ _animationTimer.Enabled = true;
+
+ base.OnLoad(e);
+ }
+
protected override void OnClosed(EventArgs e)
{
if (_memoryAppender != null)
@@ -329,16 +361,15 @@
{
_img.Draw(hDC, rc, null);
}
+ g.ReleaseHdc(hDC);
- //draw the translucent overlay, if it exists, and text log
- Rectangle overlayBounds = new Rectangle(30, 80, this.ClientRectangle.Width - 60, this.ClientRectangle.Height - 110);
- if (_imgOverlay != null)
+ //draw the translucent overlay
+ Rectangle overlayBounds = new Rectangle(30, 80, this.ClientRectangle.Width - 60,
+ this.ClientRectangle.Height - 110);
+ if (_drawAlphaLayer)
{
- rc = RECT.FromXYWH(overlayBounds.X, overlayBounds.Y,
- overlayBounds.Width, overlayBounds.Height);
- _imgOverlay.Draw(hDC, rc, null);
+ DrawTranslucentLayer(_bmpOffScreen, overlayBounds, _alphaColor, _alphaValue);
}
- g.ReleaseHdc(hDC);
//draw log
Brush logFontBrush = new SolidBrush(_logColor);
@@ -350,7 +381,8 @@
String strLog = sb.ToString();
SizeF textBounds = g.MeasureString(strLog, _logFont);
RectangleF textDrawArea = new RectangleF(overlayBounds.X,
- overlayBounds.Y + overlayBounds.Height - textBounds.Height, overlayBounds.Width, textBounds.Height);
+ overlayBounds.Y + overlayBounds.Height - textBounds.Height,
+ overlayBounds.Width, textBounds.Height);
g.Clip = new Region(overlayBounds);
g.DrawString(strLog, _logFont, logFontBrush, textDrawArea);
@@ -365,6 +397,30 @@
#endregion Protected Methods
+ #region Private Methods
+
+ /// <summary>
+ /// Draws a translucent layer on top of the bitmap.
+ /// </summary>
+ /// <param name="bitmap">The bitmap to draw a alpha layer on top of</param>
+ /// <param name="color">The color of the alpha layer</param>
+ /// <param name="alphaValue">The translucency value</param>
+ private void DrawTranslucentLayer(Bitmap bitmap, Rectangle overlayBounds, Color color, int alphaValue)
+ {
+ Graphics g = Graphics.FromImage(bitmap);
+ Bitmap alphaBitmap = new Bitmap(overlayBounds.Width, overlayBounds.Height);
+ Graphics gAlpha = Graphics.FromImage(alphaBitmap);
+ SolidBrush alphaBrush = new SolidBrush(color);
+ gAlpha.FillRectangle(alphaBrush, 0, 0, alphaBitmap.Width, alphaBitmap.Height);
+ //Rectangle alphaDestRectangle = new Rectangle(0, 0,
+ // alphaBitmap.Width, alphaBitmap.Height);
+ float alphaFloat = alphaValue / 255f;
+ DrawingUtils.AlphaBlend(g, overlayBounds, alphaBitmap, alphaFloat);
+ alphaBitmap.Dispose();
+ alphaBrush.Dispose();
+ gAlpha.Dispose();
+ }
+
private void OnAnimationTimer(object sender, EventArgs e)
{
bool bInvalidate = false;
@@ -391,7 +447,10 @@
this.Invalidate();
}
}
+ #endregion Private Methods
+ #region IProgress Members
+
public void Increment(int value)
{
if (InvokeRequired)
@@ -417,5 +476,7 @@
_progressBar.PerformStep();
}
}
+
+ #endregion
}
}
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.
|
|
From: <jon...@us...> - 2008-02-29 20:30:38
|
Revision: 120
http://roam.svn.sourceforge.net/roam/?rev=120&view=rev
Author: jonfroehlich
Date: 2008-02-29 12:30:37 -0800 (Fri, 29 Feb 2008)
Log Message:
-----------
removed inaccessible break from SummaryStatistics
Modified Paths:
--------------
Trunk/Source/Roam.Common/Utils/SummaryStatistics.cs
Trunk/Source/Roam.Test/Roam.Test.csproj
Trunk/Source/Roam.suo
Modified: Trunk/Source/Roam.Common/Utils/SummaryStatistics.cs
===================================================================
--- Trunk/Source/Roam.Common/Utils/SummaryStatistics.cs 2008-02-25 17:54:19 UTC (rev 119)
+++ Trunk/Source/Roam.Common/Utils/SummaryStatistics.cs 2008-02-29 20:30:37 UTC (rev 120)
@@ -134,7 +134,6 @@
break;
default:
throw new ArgumentException(string.Format("We cannot set a value for the flag={0}", flag));
- break;
}
}
}
Modified: Trunk/Source/Roam.Test/Roam.Test.csproj
===================================================================
--- Trunk/Source/Roam.Test/Roam.Test.csproj 2008-02-25 17:54:19 UTC (rev 119)
+++ Trunk/Source/Roam.Test/Roam.Test.csproj 2008-02-29 20:30:37 UTC (rev 120)
@@ -564,7 +564,7 @@
<DependentUpon>TextBoxFilteredListTest.cs</DependentUpon>
</Compile>
<Compile Include="UI\Controls\FontTest.cs">
- <SubType>Component</SubType>
+ <SubType>Form</SubType>
</Compile>
<Compile Include="UI\Controls\FontTest.Designer.cs">
<DependentUpon>FontTest.cs</DependentUpon>
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.
|
|
From: <jon...@us...> - 2008-02-25 17:54:22
|
Revision: 119
http://roam.svn.sourceforge.net/roam/?rev=119&view=rev
Author: jonfroehlich
Date: 2008-02-25 09:54:19 -0800 (Mon, 25 Feb 2008)
Log Message:
-----------
added IsFull property to Buffer
changed MaxItems property in Buffer to Capacity
Modified Paths:
--------------
Trunk/Source/Roam.Common/Collections/Buffer.cs
Trunk/Source/Roam.UI/Controls/ScrollableLabel.cs
Modified: Trunk/Source/Roam.Common/Collections/Buffer.cs
===================================================================
--- Trunk/Source/Roam.Common/Collections/Buffer.cs 2008-02-25 09:42:47 UTC (rev 118)
+++ Trunk/Source/Roam.Common/Collections/Buffer.cs 2008-02-25 17:54:19 UTC (rev 119)
@@ -29,13 +29,17 @@
/// <author>Jon Froehlich</author>
public class Buffer<T> : ICollection<T>
{
+ #region Fields
private LinkedList<T> _listItems = new LinkedList<T>();
- private int _maxItems = 30;
+ private int _capacity = 30;
+ #endregion fields
- public Buffer(int maxItems)
+ #region Constructors
+ public Buffer(int capacity)
{
- _maxItems = maxItems;
+ _capacity = capacity;
}
+ #endregion Constructors
#region Properties
public virtual bool IsSynchronized
@@ -80,7 +84,7 @@
{
throw new ArgumentOutOfRangeException(String.Format(
"There is no item {0}; the number of items contained in this buffer is {1} (maximum {2})",
- index, _listItems.Count, this.MaxItems));
+ index, _listItems.Count, this.Capacity));
}
node = node.Next;
}
@@ -88,18 +92,18 @@
}
}
- public virtual int MaxItems
+ public virtual int Capacity
{
get
{
- return _maxItems;
+ return _capacity;
}
set
{
- if (_maxItems != value)
+ if (_capacity != value)
{
- _maxItems = value;
- while (_listItems.Count > _maxItems)
+ _capacity = value;
+ while (_listItems.Count > _capacity)
{
_listItems.RemoveFirst();
}
@@ -117,16 +121,21 @@
get { return false; }
}
+ public virtual bool IsFull
+ {
+ get { return Count == Capacity; }
+ }
+
//protected virtual LinkedList<T> Items
//{
// get { return _listItems; }
//}
#endregion Properties
-
+ #region Methods
public virtual void Add(T item)
{
- while (_listItems.Count >= _maxItems)
+ while (_listItems.Count >= _capacity)
{
_listItems.RemoveFirst();
}
@@ -136,18 +145,18 @@
public virtual void AddRange(T[] items)
{
//jeffixme test this method
- if (items.Length >= _maxItems)
+ if (items.Length >= _capacity)
{
_listItems.Clear();
- int startIndex = items.Length - _maxItems;
- for (int i = 0; i < _maxItems; i++)
+ int startIndex = items.Length - _capacity;
+ for (int i = 0; i < _capacity; i++)
{
_listItems.AddLast(items[startIndex + i]);
}
}
else
{
- while (_listItems.Count + items.Length >= _maxItems)
+ while (_listItems.Count + items.Length >= _capacity)
{
_listItems.RemoveFirst();
}
@@ -195,11 +204,14 @@
{
return _listItems.GetEnumerator();
}
+ #endregion Methods
+ #region Static Methods
public static SyncBuffer Synchronized(Buffer<T> b)
{
return new SyncBuffer(b);
}
+ #endregion Static Methods
/// <summary>
///
@@ -210,15 +222,19 @@
/// <author>Jon Froehlich</author>
public class SyncBuffer : Buffer<T>
{
+ #region Fields
private Buffer<T> _buffer;
private object _root;
+ #endregion Fields
+ #region Constructors
public SyncBuffer(Buffer<T> buffer)
: base(0)
{
_buffer = buffer;
_root = buffer.SyncRoot;
}
+ #endregion Constructors
#region Properties
public override bool IsSynchronized
@@ -242,17 +258,17 @@
}
}
- public override int MaxItems
+ public override int Capacity
{
get
{
- return _buffer.MaxItems;
+ return _buffer.Capacity;
}
set
{
lock (this._root)
{
- _buffer.MaxItems = value;
+ _buffer.Capacity = value;
}
}
}
@@ -272,8 +288,20 @@
{
get { return _buffer.IsReadOnly; }
}
+
+ public override bool IsFull
+ {
+ get
+ {
+ lock (this._root)
+ {
+ return base.IsFull;
+ }
+ }
+ }
#endregion Properties
+ #region Methods
public override void Add(T item)
{
lock (this._root)
@@ -329,6 +357,7 @@
return _buffer.GetEnumerator();
}
}
+ #endregion Methods
}
}
}
Modified: Trunk/Source/Roam.UI/Controls/ScrollableLabel.cs
===================================================================
--- Trunk/Source/Roam.UI/Controls/ScrollableLabel.cs 2008-02-25 09:42:47 UTC (rev 118)
+++ Trunk/Source/Roam.UI/Controls/ScrollableLabel.cs 2008-02-25 17:54:19 UTC (rev 119)
@@ -73,7 +73,7 @@
public ScrollableLabel(int maxLines)
: this(string.Empty)
{
- _buffer.MaxItems = maxLines;
+ _buffer.Capacity = maxLines;
}
public ScrollableLabel(string text)
@@ -204,12 +204,12 @@
public int MaxLines
{
- get { return _buffer.MaxItems; }
+ get { return _buffer.Capacity; }
set
{
- if (_buffer.MaxItems != value)
+ if (_buffer.Capacity != value)
{
- _buffer.MaxItems = value;
+ _buffer.Capacity = value;
UpdateLayout();
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jon...@us...> - 2008-02-25 09:42:53
|
Revision: 118
http://roam.svn.sourceforge.net/roam/?rev=118&view=rev
Author: jonfroehlich
Date: 2008-02-25 01:42:47 -0800 (Mon, 25 Feb 2008)
Log Message:
-----------
fixed a bug in Sms when the empty constructor was used
fixed another bug when RecipientPhoneNumber was read before being set
Modified Paths:
--------------
Trunk/Source/Roam/PocketOutlook/Sms.cs
Trunk/Source/Roam.Test/Roam.Test.csproj
Trunk/Source/Roam.suo
Modified: Trunk/Source/Roam/PocketOutlook/Sms.cs
===================================================================
--- Trunk/Source/Roam/PocketOutlook/Sms.cs 2008-02-21 19:46:11 UTC (rev 117)
+++ Trunk/Source/Roam/PocketOutlook/Sms.cs 2008-02-25 09:42:47 UTC (rev 118)
@@ -31,7 +31,7 @@
///
/// </remarks>
/// <author>Jon Froehlich</author>
- public class Sms
+ public class Sms : IDisposable
{
private static readonly log4net.ILog _log = log4net.LogManager.GetLogger(typeof(Sms));
@@ -65,9 +65,18 @@
public Sms(string recipientPhoneNumber, string message, bool deliveryConfirmation)
{
- _smsMessage = new SmsMessage(recipientPhoneNumber, message);
+ if (string.IsNullOrEmpty(recipientPhoneNumber))
+ {
+ _smsMessage = new SmsMessage();
+ Message = message;
+ }
+ else
+ {
+ _smsMessage = new SmsMessage(recipientPhoneNumber, message);
+ }
+
_smsMessage.RequestDeliveryReport = deliveryConfirmation;
-
+
_phoneSearchingState = new SystemState(SystemProperty.PhoneSearchingForService);
_phoneSearchingState.Changed += new ChangeEventHandler(OnPhoneSearchingForService);
_phoneSignalStrength = new SystemState(SystemProperty.PhoneSignalStrength);
@@ -97,11 +106,15 @@
}
}
+ /// <summary>
+ /// Returns the recipient's phone number. If no recipient has been set, this property
+ /// returns null.
+ /// </summary>
public string RecipientPhoneNumber
{
get
{
- return _smsMessage.To[0].Address;
+ return _smsMessage.To.Count <= 0 ? null : _smsMessage.To[0].Address;
}
set
{
@@ -172,6 +185,7 @@
#endregion Properties
+ #region Methods
public virtual bool Send()
{
return SendInternal();
@@ -307,7 +321,26 @@
_manualResetEvent.Set();
}
}
+ #endregion Methods
+ #region IDisposable Members
+
+ public void Dispose()
+ {
+ _phoneSearchingState.Changed -= new ChangeEventHandler(OnPhoneSearchingForService);
+ _phoneSignalStrength.Changed -= new ChangeEventHandler(OnPhoneSignalStrength);
+
+ if (_timer != null)
+ {
+ _timer.Dispose();
+ _timer = null;
+ }
+
+ _manualResetEvent.Close();
+ }
+
+ #endregion
+
#region SMS Error
public const int SMS_E_INVALIDPROTOCOL = 0x0001;
public const int SMS_E_REGISTRATIONEXISTS = 0x0002;
Modified: Trunk/Source/Roam.Test/Roam.Test.csproj
===================================================================
--- Trunk/Source/Roam.Test/Roam.Test.csproj 2008-02-21 19:46:11 UTC (rev 117)
+++ Trunk/Source/Roam.Test/Roam.Test.csproj 2008-02-25 09:42:47 UTC (rev 118)
@@ -564,7 +564,7 @@
<DependentUpon>TextBoxFilteredListTest.cs</DependentUpon>
</Compile>
<Compile Include="UI\Controls\FontTest.cs">
- <SubType>Form</SubType>
+ <SubType>Component</SubType>
</Compile>
<Compile Include="UI\Controls\FontTest.Designer.cs">
<DependentUpon>FontTest.cs</DependentUpon>
@@ -702,7 +702,7 @@
<DependentUpon>SystemColorTest.cs</DependentUpon>
</Compile>
<Compile Include="UI\Controls\TabControlTest.cs">
- <SubType>Form</SubType>
+ <SubType>Component</SubType>
</Compile>
<Compile Include="UI\Controls\TabControlTest.Designer.cs">
<DependentUpon>TabControlTest.cs</DependentUpon>
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.
|
|
From: <jon...@us...> - 2008-02-21 19:46:20
|
Revision: 117
http://roam.svn.sourceforge.net/roam/?rev=117&view=rev
Author: jonfroehlich
Date: 2008-02-21 11:46:11 -0800 (Thu, 21 Feb 2008)
Log Message:
-----------
added HasActiveConnection method
Modified Paths:
--------------
Trunk/Source/Roam.SqlCe/SqlCeConnectionManager.cs
Trunk/Source/Roam.Test/Roam.Test.csproj
Trunk/Source/Roam.suo
Modified: Trunk/Source/Roam.SqlCe/SqlCeConnectionManager.cs
===================================================================
--- Trunk/Source/Roam.SqlCe/SqlCeConnectionManager.cs 2008-02-19 22:55:01 UTC (rev 116)
+++ Trunk/Source/Roam.SqlCe/SqlCeConnectionManager.cs 2008-02-21 19:46:11 UTC (rev 117)
@@ -142,6 +142,24 @@
}
/// <summary>
+ /// Returns true if the current thread has an active connection
+ /// </summary>
+ /// <returns></returns>
+ public static bool HasActiveConnection()
+ {
+ return _connectionPool.HasActiveConnection(Thread.CurrentThread);
+ }
+
+ /// <summary>
+ /// Returns true if the provided thread has an active connection
+ /// </summary>
+ /// <returns></returns>
+ public static bool HasActiveConnection(Thread thread)
+ {
+ return _connectionPool.HasActiveConnection(thread);
+ }
+
+ /// <summary>
/// This method is for debugging purposes only, do not change/modify the
/// Thread or SqlCeConnection objects
/// </summary>
@@ -346,6 +364,19 @@
}
/// <summary>
+ /// Returns true if the connection pool has an active connection for the provided thread
+ /// </summary>
+ /// <param name="thread"></param>
+ /// <returns></returns>
+ public bool HasActiveConnection(Thread thread)
+ {
+ lock (_objLock)
+ {
+ return _activeConnections.ContainsKey(thread);
+ }
+ }
+
+ /// <summary>
/// Opens an SqlCeConnection for the current thread. If a connection already exists for the
/// current thread, that SqlCeConnection is used.
/// </summary>
@@ -371,19 +402,20 @@
if (_activeConnections.ContainsKey(threadCurrent))
{
- _log.DebugFormat("Open : The current thread {0} has an assigned connection", threadCurrent.Name);
+ _log.DebugFormat("Open : The current thread '{0}' with ThreadId={1} has an assigned connection",
+ threadCurrent.Name, threadCurrent.ManagedThreadId);
sqlConn = _activeConnections[threadCurrent];
}
else if (_pooledConnectionsStack.Count > 0)
{
- _log.DebugFormat("Open : The number of pooled connections={0}, assigning thread {1} a pooled connection",
- _pooledConnectionsStack.Count, threadCurrent.Name);
+ _log.DebugFormat("Open : The number of pooled connections={0}, assigning thread '{1}' with ThreadId={2} a pooled connection",
+ _pooledConnectionsStack.Count, threadCurrent.Name, threadCurrent.ManagedThreadId);
sqlConn = _pooledConnectionsStack.Pop();
}
else
{
- _log.DebugFormat("Open : The number of pooled connections={0}, assigning thread {1} a new connection",
- _pooledConnectionsStack.Count, threadCurrent.Name);
+ _log.DebugFormat("Open : The number of pooled connections={0}, assigning thread '{1}' with ThreadId={2} a new connection",
+ _pooledConnectionsStack.Count, threadCurrent.Name, threadCurrent.ManagedThreadId);
sqlConn = new SqlCeConnection(_connectionString);
}
_activeConnections[threadCurrent] = sqlConn;
@@ -400,8 +432,8 @@
_log.DebugFormat("Open : There are {0} connections open and {1} pooled connections",
OpenedConnectionsCount, PooledConnectionsCount);
- _log.DebugFormat("Open : Successfully opened connection for thread '{0}' in {1} ms",
- threadCurrent.Name, sw.ElapsedMilliseconds);
+ _log.DebugFormat("Open : Successfully opened connection for thread '{0}' with ThreadId={1} in {2} ms",
+ threadCurrent.Name, threadCurrent.ManagedThreadId, sw.ElapsedMilliseconds);
}
return sqlConn;
}
@@ -460,11 +492,15 @@
}
else
{
- _log.DebugFormat("Close : Could not close connection for thread '{0}', connection does not exist", threadCurrent.Name);
+ _log.DebugFormat("Close : Could not close connection for thread '{0}' with ThreadID={1}, connection does not exist",
+ threadCurrent.Name, threadCurrent.ManagedThreadId);
}
- _log.DebugFormat("Close : There are {0} connections open and {1} pooled connections", OpenedConnectionsCount, PooledConnectionsCount);
- _log.DebugFormat("Close : completed in {0} ms", sw.ElapsedMilliseconds);
+ if (_log.IsDebugEnabled)
+ {
+ _log.DebugFormat("Close : There are {0} connections open and {1} pooled connections", OpenedConnectionsCount, PooledConnectionsCount);
+ _log.DebugFormat("Close : completed in {0} ms", sw.ElapsedMilliseconds);
+ }
return returnVal;
}
}
Modified: Trunk/Source/Roam.Test/Roam.Test.csproj
===================================================================
--- Trunk/Source/Roam.Test/Roam.Test.csproj 2008-02-19 22:55:01 UTC (rev 116)
+++ Trunk/Source/Roam.Test/Roam.Test.csproj 2008-02-21 19:46:11 UTC (rev 117)
@@ -564,7 +564,7 @@
<DependentUpon>TextBoxFilteredListTest.cs</DependentUpon>
</Compile>
<Compile Include="UI\Controls\FontTest.cs">
- <SubType>Component</SubType>
+ <SubType>Form</SubType>
</Compile>
<Compile Include="UI\Controls\FontTest.Designer.cs">
<DependentUpon>FontTest.cs</DependentUpon>
@@ -702,7 +702,7 @@
<DependentUpon>SystemColorTest.cs</DependentUpon>
</Compile>
<Compile Include="UI\Controls\TabControlTest.cs">
- <SubType>Component</SubType>
+ <SubType>Form</SubType>
</Compile>
<Compile Include="UI\Controls\TabControlTest.Designer.cs">
<DependentUpon>TabControlTest.cs</DependentUpon>
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.
|
|
From: <jon...@us...> - 2008-02-19 22:55:05
|
Revision: 116
http://roam.svn.sourceforge.net/roam/?rev=116&view=rev
Author: jonfroehlich
Date: 2008-02-19 14:55:01 -0800 (Tue, 19 Feb 2008)
Log Message:
-----------
1. fixed bug in SplashForm that caused empty log statements from printing
2. fixed bug in SqlCeConnectionManager where the number of PooledConnectionsCount were misreported
Modified Paths:
--------------
Trunk/Source/Roam.SqlCe/SqlCeConnectionManager.cs
Trunk/Source/Roam.Test/Roam.Test.csproj
Trunk/Source/Roam.UI/Forms/SplashForm.cs
Trunk/Source/Roam.suo
Modified: Trunk/Source/Roam.SqlCe/SqlCeConnectionManager.cs
===================================================================
--- Trunk/Source/Roam.SqlCe/SqlCeConnectionManager.cs 2008-02-12 12:34:09 UTC (rev 115)
+++ Trunk/Source/Roam.SqlCe/SqlCeConnectionManager.cs 2008-02-19 22:55:01 UTC (rev 116)
@@ -37,29 +37,74 @@
{
private static readonly log4net.ILog _log = log4net.LogManager.GetLogger(typeof(SqlCeConnectionManager));
+ #region Fields
private static ConnectionPool _connectionPool;
private static object _objLock = new object();
-
+ #endregion Fields
+
+ #region Properties
+ /// <summary>
+ /// Gets whether or not the SqlCeConnectionManager has been initialized
+ /// </summary>
public static bool IsInitialized
{
- get { lock (_objLock) { return _connectionPool != null; } }
+ get
+ {
+ lock (_objLock)
+ {
+ return _connectionPool != null;
+ }
+ }
}
+ /// <summary>
+ /// Gets the connection string that was used to open the SqlCeConnection
+ /// </summary>
public static string ConnectionString
{
- get { lock (_objLock) { return (_connectionPool==null) ? "" : _connectionPool.ConnectionString; } }
+ get
+ {
+ lock (_objLock)
+ {
+ return (_connectionPool==null) ? "" : _connectionPool.ConnectionString;
+ }
+ }
}
+ /// <summary>
+ /// Gets the number of SqlCeConnections that are currently pooled
+ /// </summary>
public static int PooledConnectionsCount
{
- get { lock (_objLock) { return (_connectionPool == null) ? 0 : _connectionPool.PooledConnectionsCount; } }
+ get
+ {
+ lock (_objLock)
+ {
+ return (_connectionPool == null) ? 0 : _connectionPool.PooledConnectionsCount;
+ }
+ }
}
+ /// <summary>
+ /// Gets the number of SqlCeConnections that are currently opened
+ /// </summary>
public static int OpenedConnectionsCount
{
- get { lock (_objLock) { return (_connectionPool == null) ? 0 : _connectionPool.PooledConnectionsCount; } }
+ get
+ {
+ lock (_objLock)
+ {
+ return (_connectionPool == null) ? 0 : _connectionPool.OpenedConnectionsCount;
+ }
+ }
}
+ #endregion Properties
+ #region Methods
+ /// <summary>
+ /// Initializes the SqlCeConnectionManager with the given connectionString
+ /// </summary>
+ /// <param name="connectionString"></param>
public static void Initialize(string connectionString)
{
Stopwatch sw = Stopwatch.StartNew();
@@ -67,7 +112,8 @@
{
if (_connectionPool != null)
{
- InvalidOperationException ioe = new InvalidOperationException("The SqlConnectionManager has already been initialized, call CloseAllConnections and then Initialize");
+ InvalidOperationException ioe =
+ new InvalidOperationException("The SqlConnectionManager has already been initialized, call CloseAllConnections and then Initialize");
_log.Error(ioe.Message, ioe);
throw ioe;
}
@@ -86,7 +132,8 @@
{
if (_connectionPool == null)
{
- InvalidOperationException ioe = new InvalidOperationException("The SqlConnectionManager must be initialized before calling GetConnection");
+ InvalidOperationException ioe =
+ new InvalidOperationException("The SqlConnectionManager must be initialized before calling GetConnection");
_log.Error(ioe.Message, ioe);
throw ioe;
}
@@ -95,16 +142,30 @@
}
/// <summary>
- /// Closes the SqlCeConnection for the current thread (if one exists). Returns true if the
- /// connection was closed successfully, false otherwise.
+ /// This method is for debugging purposes only, do not change/modify the
+ /// Thread or SqlCeConnection objects
/// </summary>
+ /// <returns></returns>
+ public static IDictionary<Thread, SqlCeConnection> GetActiveConnections()
+ {
+ lock (_objLock)
+ {
+ return _connectionPool.ActiveConnections;
+ }
+ }
+
+ /// <summary>
+ /// Closes the SqlCeConnection for the current thread (if one exists).
+ /// </summary>
+ /// <returns>Returns true if the connection was closed successfully, false otherwise.</returns>
public static bool CloseConnection()
{
lock (_objLock)
{
if (_connectionPool == null)
{
- InvalidOperationException ioe = new InvalidOperationException("The SqlConnectionManager must be initialized before calling GetConnection");
+ InvalidOperationException ioe =
+ new InvalidOperationException("The SqlConnectionManager must be initialized before calling GetConnection");
_log.Error(ioe.Message, ioe);
throw ioe;
}
@@ -113,7 +174,7 @@
}
/// <summary>
- /// Closes all open SqlCeConnections across all threads.
+ /// Closes all open and pooled SqlCeConnections across all threads.
/// </summary>
public static void CloseAllConnections()
{
@@ -121,11 +182,54 @@
{
if (_connectionPool != null)
{
+ _connectionPool.CloseAllConnections();
+ }
+ }
+ }
+
+ /// <summary>
+ /// Closes all active SqlCeConnections across all threads.
+ /// </summary>
+ public static void CloseAllActiveConnections()
+ {
+ lock (_objLock)
+ {
+ if (_connectionPool != null)
+ {
+ _connectionPool.CloseAllActiveConnections();
+ }
+ }
+ }
+
+ /// <summary>
+ /// Closes all pooled SqlCeConnections across all threads.
+ /// </summary>
+ public static void CloseAllPooledConnections()
+ {
+ lock (_objLock)
+ {
+ if (_connectionPool != null)
+ {
+ _connectionPool.CloseAllPooledConnections();
+ }
+ }
+ }
+
+ /// <summary>
+ /// Disposes all connections and sets the connection pool to null
+ /// </summary>
+ public static void Dispose()
+ {
+ lock (_objLock)
+ {
+ if (_connectionPool != null)
+ {
_connectionPool.Dispose();
_connectionPool = null;
}
}
}
+ #endregion Methods
/// <summary>
///
@@ -137,52 +241,75 @@
class ConnectionPool : IDisposable
{
private static readonly log4net.ILog _log = log4net.LogManager.GetLogger(typeof(ConnectionPool));
+ private static readonly int DEFAULT_MAX_POOLED_CONNECTIONS = 5;
- private Dictionary<Thread, SqlCeConnection> _connections = new Dictionary<Thread, SqlCeConnection>();
- private Stack<SqlCeConnection> _pooledConnections = new Stack<SqlCeConnection>(5);
+ #region Fields
+ private Dictionary<Thread, SqlCeConnection> _activeConnections =
+ new Dictionary<Thread, SqlCeConnection>(new ThreadKeyComparer());
+ private Stack<SqlCeConnection> _pooledConnectionsStack;
/// <summary>
- /// The minimum number of connections kept in the connection pool
+ /// The maximum number of connections kept in the connection pool
/// </summary>
- private int _minPooledConnections = 5;
+ private int _maxPooledConnections = DEFAULT_MAX_POOLED_CONNECTIONS;
private object _objLock = new object();
private string _connectionString;
+ #endregion Fields
- public ConnectionPool(string connectionString) : this(connectionString, 5) { }
+ #region Constructors
+ public ConnectionPool(string connectionString)
+ : this(connectionString, DEFAULT_MAX_POOLED_CONNECTIONS) { }
- public ConnectionPool(string connectionString, int minimumPooledConnections)
+ public ConnectionPool(string connectionString, int maxPooledConnections)
{
_connectionString = connectionString;
- _minPooledConnections = minimumPooledConnections;
+ _maxPooledConnections = maxPooledConnections;
- _log.DebugFormat("ConnectionPool created with ConnectionString={0} and MinimumPooledConnections={1}",
- _connectionString, _minPooledConnections);
+ _pooledConnectionsStack = new Stack<SqlCeConnection>(maxPooledConnections);
+
+ _log.DebugFormat("ConnectionPool created with ConnectionString={0} and MaximumPooledConnections={1}",
+ _connectionString, _maxPooledConnections);
}
+ #endregion Constructors
+ #region Properties
+ /// <summary>
+ /// Gets the connection string used for the ConnectionPool
+ /// </summary>
public string ConnectionString
{
get { return _connectionString; }
}
- public int MinimumPooledConnections
+ /// <summary>
+ /// Gets the maximum number of pooled connections to maintain
+ /// </summary>
+ public int MaximumPooledConnections
{
- get { return _minPooledConnections; }
+ get { return _maxPooledConnections; }
}
+ /// <summary>
+ /// Gets the current number of pooled connections
+ /// </summary>
public int PooledConnectionsCount
{
- get { return _pooledConnections.Count; }
+ get { return _pooledConnectionsStack.Count; }
}
+ /// <summary>
+ /// Gets the current number of opened connections
+ /// </summary>
public int OpenedConnectionsCount
{
get
{
int openCount = 0;
- foreach (SqlCeConnection sqlConnection in _connections.Values)
+ foreach (SqlCeConnection sqlConnection in _activeConnections.Values)
{
- if ((sqlConnection.State & System.Data.ConnectionState.Open) == System.Data.ConnectionState.Open)
+ if ((sqlConnection.State & System.Data.ConnectionState.Open)
+ == System.Data.ConnectionState.Open)
{
openCount++;
}
@@ -191,16 +318,38 @@
}
}
+ /// <summary>
+ /// This property is for debugging purposes only, do not change the Thread
+ /// or SqlCeConnection objects in the returned Dictionary
+ /// </summary>
+ public IDictionary<Thread, SqlCeConnection> ActiveConnections
+ {
+ get
+ {
+ lock (_objLock)
+ {
+ return new Dictionary<Thread, SqlCeConnection>(_activeConnections);
+ }
+ }
+ }
+ #endregion Properties
+
+ #region Methods
public void Dispose()
{
lock (_objLock)
{
CloseAllConnections();
- _connections.Clear();
- _pooledConnections.Clear();
+ _activeConnections = null;
+ _pooledConnectionsStack = null;
}
}
+ /// <summary>
+ /// Opens an SqlCeConnection for the current thread. If a connection already exists for the
+ /// current thread, that SqlCeConnection is used.
+ /// </summary>
+ /// <returns></returns>
public SqlCeConnection Open()
{
lock (_objLock)
@@ -209,6 +358,7 @@
SqlCeConnection sqlConn;
Thread threadCurrent = Thread.CurrentThread;
+ #region DEBUG
//debug
//_log.InfoFormat("There are {0} items in _connections", _connections.Count);
//_log.InfoFormat("The current thread={0} with managed thread id={1}", threadCurrent.Name, threadCurrent.ManagedThreadId);
@@ -217,25 +367,26 @@
// _log.InfoFormat("{0} ({1}): {2}", kvp.Key.Name, kvp.Key.ManagedThreadId, kvp.Value.ConnectionString);
//}
//end debug
+ #endregion DEBUG
- if (_connections.ContainsKey(threadCurrent))
+ if (_activeConnections.ContainsKey(threadCurrent))
{
_log.DebugFormat("Open : The current thread {0} has an assigned connection", threadCurrent.Name);
- sqlConn = _connections[threadCurrent];
+ sqlConn = _activeConnections[threadCurrent];
}
- else if (_pooledConnections.Count > 0)
+ else if (_pooledConnectionsStack.Count > 0)
{
_log.DebugFormat("Open : The number of pooled connections={0}, assigning thread {1} a pooled connection",
- _pooledConnections.Count, threadCurrent.Name);
- sqlConn = _pooledConnections.Pop();
+ _pooledConnectionsStack.Count, threadCurrent.Name);
+ sqlConn = _pooledConnectionsStack.Pop();
}
else
{
_log.DebugFormat("Open : The number of pooled connections={0}, assigning thread {1} a new connection",
- _pooledConnections.Count, threadCurrent.Name);
+ _pooledConnectionsStack.Count, threadCurrent.Name);
sqlConn = new SqlCeConnection(_connectionString);
}
- _connections[threadCurrent] = sqlConn;
+ _activeConnections[threadCurrent] = sqlConn;
if (sqlConn.State == System.Data.ConnectionState.Closed)
{
@@ -243,12 +394,25 @@
sqlConn.Open();
}
- _log.DebugFormat("Open : There are {0} connections open and {1} pooled connections", OpenedConnectionsCount, PooledConnectionsCount);
- _log.DebugFormat("Open : Successfully opened connection for thread {0} in {1} ms", threadCurrent.Name, sw.ElapsedMilliseconds);
+ //most efficient to check for this flag before logging
+ if (_log.IsDebugEnabled)
+ {
+ _log.DebugFormat("Open : There are {0} connections open and {1} pooled connections",
+ OpenedConnectionsCount, PooledConnectionsCount);
+
+ _log.DebugFormat("Open : Successfully opened connection for thread '{0}' in {1} ms",
+ threadCurrent.Name, sw.ElapsedMilliseconds);
+ }
return sqlConn;
}
}
+ /// <summary>
+ /// Closes the active SQL connection for the current thread. If the maximum pooled
+ /// connections count has not yet been reached, this connection may be added to the
+ /// connection pool, otherwise it is immediately closed
+ /// </summary>
+ /// <returns></returns>
public bool Close()
{
lock (_objLock)
@@ -257,6 +421,7 @@
Thread threadCurrent = Thread.CurrentThread;
bool returnVal = false;
+ #region DEBUG
//debug
//_log.InfoFormat("There are {0} items in _connections", _connections.Count);
//_log.InfoFormat("The current thread={0} with managed thread id={1}", threadCurrent.Name, threadCurrent.ManagedThreadId);
@@ -265,26 +430,33 @@
// _log.InfoFormat("{0} ({1}): {2}", kvp.Key.Name, kvp.Key.ManagedThreadId, kvp.Value.ConnectionString);
//}
//end debug
+ #endregion DEBUG
- if (_connections.ContainsKey(threadCurrent))
+ if (_activeConnections.ContainsKey(threadCurrent))
{
- SqlCeConnection sqlConn = _connections[threadCurrent];
- _connections.Remove(threadCurrent);
+ SqlCeConnection sqlConn = _activeConnections[threadCurrent];
+ _activeConnections.Remove(threadCurrent);
+ _log.DebugFormat("Close : Removed connection for thread '{0}' with ThreadId={1}",
+ threadCurrent.Name, threadCurrent.ManagedThreadId);
+
//check to see if we should actually close the connection
- if (_pooledConnections.Count > _minPooledConnections)
+ if (_pooledConnectionsStack.Count > _maxPooledConnections)
{
- //Updated 10/10/2007. Do not rely on the thread pool to close the connection
- //ThreadPool.QueueUserWorkItem(new WaitCallback(CloseCallback), sqlConn);
sqlConn.Close();
sqlConn.Dispose();
+
+ _log.DebugFormat("Close : Closed connection for thread '{0}' with ThreadId={1} because the number of pooled connections ({2}) exceeds the maximum pooled connections limit ({3})",
+ threadCurrent.Name, threadCurrent.ManagedThreadId, _pooledConnectionsStack.Count, _maxPooledConnections);
}
else
{
- _pooledConnections.Push(sqlConn);
+ _pooledConnectionsStack.Push(sqlConn);
+
+ _log.DebugFormat("Close : Moved connection for thread '{0}' with ThreadId={1} to connection pool",
+ threadCurrent.Name, threadCurrent.ManagedThreadId);
}
returnVal = true;
- _log.DebugFormat("Close : Closed connection for thread '{0}'", threadCurrent.Name);
}
else
{
@@ -297,37 +469,76 @@
}
}
- public void CloseAllConnections()
+ /// <summary>
+ /// Close all pooled connections
+ /// </summary>
+ public void CloseAllPooledConnections()
{
lock (_objLock)
{
- foreach (SqlCeConnection sqlConn in _connections.Values)
+ int pooledConnectionsCount = _pooledConnectionsStack.Count;
+ foreach (SqlCeConnection sqlConn in _pooledConnectionsStack)
{
sqlConn.Close();
sqlConn.Dispose();
}
+ _pooledConnectionsStack.Clear();
- foreach (SqlCeConnection sqlConn in _pooledConnections)
- {
- sqlConn.Close();
- sqlConn.Dispose();
- }
+ _log.DebugFormat("CloseAllPooledConnections : Successfully closed {0} pooled connections",
+ pooledConnectionsCount);
+ }
+ }
- _connections.Clear();
- _pooledConnections.Clear();
+ /// <summary>
+ /// Close all active connections
+ /// </summary>
+ public void CloseAllActiveConnections()
+ {
+ int connectionsCount = _activeConnections.Count;
+
+ foreach (SqlCeConnection sqlConn in _activeConnections.Values)
+ {
+ sqlConn.Close();
+ sqlConn.Dispose();
}
+
+ _activeConnections.Clear();
+
+ _log.DebugFormat("CloseAllConnections : Successfully closed {0} active connections",
+ connectionsCount);
}
/// <summary>
- /// Called by thread.
+ /// Close all active and pooled connections
/// </summary>
- /// <param name="state"></param>
- private void CloseCallback(object state)
+ public void CloseAllConnections()
{
- SqlCeConnection sqlConn = (SqlCeConnection)state;
- sqlConn.Close();
- sqlConn.Dispose();
+ lock (_objLock)
+ {
+ CloseAllActiveConnections();
+ CloseAllPooledConnections();
+ }
}
+ #endregion Methods
+
+ #region ThreadKeyComparer class
+ class ThreadKeyComparer : IEqualityComparer<Thread>
+ {
+ #region IEqualityComparer<Thread> Members
+
+ public bool Equals(Thread x, Thread y)
+ {
+ return x.ManagedThreadId == y.ManagedThreadId;
+ }
+
+ public int GetHashCode(Thread obj)
+ {
+ return obj.ManagedThreadId.GetHashCode();
+ }
+
+ #endregion
+ }
+ #endregion ThreadKeyComparer class
}
}
}
Modified: Trunk/Source/Roam.Test/Roam.Test.csproj
===================================================================
--- Trunk/Source/Roam.Test/Roam.Test.csproj 2008-02-12 12:34:09 UTC (rev 115)
+++ Trunk/Source/Roam.Test/Roam.Test.csproj 2008-02-19 22:55:01 UTC (rev 116)
@@ -702,7 +702,7 @@
<DependentUpon>SystemColorTest.cs</DependentUpon>
</Compile>
<Compile Include="UI\Controls\TabControlTest.cs">
- <SubType>Form</SubType>
+ <SubType>Component</SubType>
</Compile>
<Compile Include="UI\Controls\TabControlTest.Designer.cs">
<DependentUpon>TabControlTest.cs</DependentUpon>
Modified: Trunk/Source/Roam.UI/Forms/SplashForm.cs
===================================================================
--- Trunk/Source/Roam.UI/Forms/SplashForm.cs 2008-02-12 12:34:09 UTC (rev 115)
+++ Trunk/Source/Roam.UI/Forms/SplashForm.cs 2008-02-19 22:55:01 UTC (rev 116)
@@ -371,17 +371,19 @@
if (_memoryAppender != null)
{
LoggingEvent[] logEvents = _memoryAppender.GetEvents();
-
+ _memoryAppender.Clear();
+
//StringWriter has information stored in underlying StringBuilder
- StringWriter writer = new StringWriter();
-
- _memoryAppender.Clear();
- foreach (LoggingEvent logEvent in logEvents)
+ if (logEvents.Length > 0)
{
- _memoryAppender.Layout.Format(writer, logEvent);
+ StringWriter writer = new StringWriter();
+ foreach (LoggingEvent logEvent in logEvents)
+ {
+ _memoryAppender.Layout.Format(writer, logEvent);
+ }
+ _logBuffer.Add(writer.ToString());
+ bInvalidate = true;
}
- _logBuffer.Add(writer.ToString());
- bInvalidate = true;
}
if (bInvalidate)
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.
|
|
From: <jon...@us...> - 2008-02-12 12:34:14
|
Revision: 115
http://roam.svn.sourceforge.net/roam/?rev=115&view=rev
Author: jonfroehlich
Date: 2008-02-12 04:34:09 -0800 (Tue, 12 Feb 2008)
Log Message:
-----------
added IsDisposed property to RoamForm
Modified Paths:
--------------
Trunk/Source/Roam.UI/Forms/RoamForm.cs
Trunk/Source/Roam.suo
Modified: Trunk/Source/Roam.UI/Forms/RoamForm.cs
===================================================================
--- Trunk/Source/Roam.UI/Forms/RoamForm.cs 2008-02-11 18:29:59 UTC (rev 114)
+++ Trunk/Source/Roam.UI/Forms/RoamForm.cs 2008-02-12 12:34:09 UTC (rev 115)
@@ -44,9 +44,14 @@
public bool IsClosed
{
get { return _isClosed; }
- set { _isClosed = value; }
+ protected set { _isClosed = value; }
}
+ public bool IsDisposed
+ {
+ get { return _isDisposed; }
+ }
+
public bool IsModal
{
get { return _isModal; }
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.
|
|
From: <jon...@us...> - 2008-02-11 18:30:07
|
Revision: 114
http://roam.svn.sourceforge.net/roam/?rev=114&view=rev
Author: jonfroehlich
Date: 2008-02-11 10:29:59 -0800 (Mon, 11 Feb 2008)
Log Message:
-----------
Modified Paths:
--------------
Trunk/Source/Roam.Test/MainForm.cs
Trunk/Source/Roam.Test/Roam.Test.csproj
Trunk/Source/Roam.Test/UI/Controls/WallpaperTest.cs
Trunk/Source/Roam.UI/Utils/DesktopUtils.cs
Trunk/Source/Roam.UI/Utils/ScreenUtils.cs
Modified: Trunk/Source/Roam.Test/MainForm.cs
===================================================================
--- Trunk/Source/Roam.Test/MainForm.cs 2008-02-09 11:59:17 UTC (rev 113)
+++ Trunk/Source/Roam.Test/MainForm.cs 2008-02-11 18:29:59 UTC (rev 114)
@@ -115,13 +115,16 @@
{
Cursor.Current = Cursors.WaitCursor;
ListItem listItem = (ListItem)_keyFilteredListBox.SelectedItem;
- ComboBoxTypeItem selectedCti = (ComboBoxTypeItem)listItem.Item;
- _currentForm = (Form)Activator.CreateInstance(selectedCti.Type);
- Cursor.Current = Cursors.Default;
- _currentForm.ShowDialog();
- _currentForm = null;
- this.Activate();
- e.Handled = true;
+ if (listItem != null)
+ {
+ ComboBoxTypeItem selectedCti = (ComboBoxTypeItem)listItem.Item;
+ _currentForm = (Form)Activator.CreateInstance(selectedCti.Type);
+ Cursor.Current = Cursors.Default;
+ _currentForm.ShowDialog();
+ _currentForm = null;
+ this.Activate();
+ e.Handled = true;
+ }
}
}
Modified: Trunk/Source/Roam.Test/Roam.Test.csproj
===================================================================
--- Trunk/Source/Roam.Test/Roam.Test.csproj 2008-02-09 11:59:17 UTC (rev 113)
+++ Trunk/Source/Roam.Test/Roam.Test.csproj 2008-02-11 18:29:59 UTC (rev 114)
@@ -564,7 +564,7 @@
<DependentUpon>TextBoxFilteredListTest.cs</DependentUpon>
</Compile>
<Compile Include="UI\Controls\FontTest.cs">
- <SubType>Form</SubType>
+ <SubType>Component</SubType>
</Compile>
<Compile Include="UI\Controls\FontTest.Designer.cs">
<DependentUpon>FontTest.cs</DependentUpon>
Modified: Trunk/Source/Roam.Test/UI/Controls/WallpaperTest.cs
===================================================================
--- Trunk/Source/Roam.Test/UI/Controls/WallpaperTest.cs 2008-02-09 11:59:17 UTC (rev 113)
+++ Trunk/Source/Roam.Test/UI/Controls/WallpaperTest.cs 2008-02-11 18:29:59 UTC (rev 114)
@@ -23,6 +23,7 @@
using Roam.Utils;
using Microsoft.Win32;
using Roam.UI.Utils;
+using OpenNETCF.WindowsCE;
namespace Roam.Test.UI.Controls
{
@@ -40,9 +41,19 @@
public WallpaperTest()
{
InitializeComponent();
- string [] files = Directory.GetFiles(@"\Windows\", "*.bmp");
- foreach (string filename in files)
+
+ if (Directory.Exists(@"\My Documents\My Pictures"))
{
+ string[] files = Directory.GetFiles(@"\My Documents\My Pictures", "*.jpg");
+ foreach (string filename in files)
+ {
+ comboBox1.Items.Add(filename);
+ }
+ }
+
+ string [] files2 = Directory.GetFiles(@"\Windows\", "*.bmp");
+ foreach (string filename in files2)
+ {
comboBox1.Items.Add(filename);
}
comboBox1.SelectedIndexChanged += new EventHandler(comboBox1_SelectedIndexChanged);
@@ -72,9 +83,19 @@
private void menuItem4_Click(object sender, EventArgs e)
{
- string imgPath = (string)Registry.GetValue(@"HKEY_CURRENT_USER\ControlPanel\Home", "CurBgImageName", null);
- if (imgPath != null)
+ string imgPath = string.Empty;
+
+ if (DeviceManagement.PlatformName.IndexOf("SmartPhone") != -1)
{
+ imgPath = (string)Registry.GetValue(@"HKEY_CURRENT_USER\ControlPanel\Home", "BgImage", null);
+ }
+ else
+ {
+ imgPath = (string)Registry.GetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Today", "Wall", null);
+ }
+
+ if (!string.IsNullOrEmpty(imgPath))
+ {
pictureBox2.Image = new Bitmap(imgPath);
}
}
Modified: Trunk/Source/Roam.UI/Utils/DesktopUtils.cs
===================================================================
--- Trunk/Source/Roam.UI/Utils/DesktopUtils.cs 2008-02-09 11:59:17 UTC (rev 113)
+++ Trunk/Source/Roam.UI/Utils/DesktopUtils.cs 2008-02-11 18:29:59 UTC (rev 114)
@@ -66,6 +66,8 @@
/// </summary>
public static readonly int SPI_SETDESKWALLPAPER = 20;
+ public static readonly int SPI_SETDESKWALLPAPER_POCKETPC = 0x00F2;
+
public static void SetWallpaper(Image image, string tempFilePath)
{
if (File.Exists(tempFilePath)) { File.Delete(tempFilePath); }
@@ -89,10 +91,15 @@
}
else
{
- //TODO fix this so that it works on Pocket PC and Pocket PC Phone
+ //these are special hidden system file names for the background
File.Copy(imageFile, @"\Windows\stwater_240_320.jpg", true);
File.Copy(imageFile, @"\Windows\stwater_320_240.jpg", true);
- Win32Window.SendMessage((IntPtr)HWND_BROADCAST, WM_WININICHANGE, 0xF2, 0);
+
+ // Update registry
+ Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Today", "Wall", imageFile);//@"\Windows\stwater_240_320.jpg");
+
+ Win32Window.SendMessage((IntPtr)HWND_BROADCAST, WM_WININICHANGE, SPI_SETDESKWALLPAPER_POCKETPC, 0);
+ //Win32Window.SendMessage((IntPtr)HWND_BROADCAST, WM_WININICHANGE, SPI_SETDESKWALLPAPER, 0);
}
}
@@ -116,10 +123,15 @@
}
else
{
- //TODO fix this so that it works on Pocket PC and Pocket PC Phone
+ //these are special hidden system file names for the background
File.Copy(imageFile240x320, @"\Windows\stwater_240_320.jpg", true);
File.Copy(imageFile320x240, @"\Windows\stwater_320_240.jpg", true);
- Win32Window.SendMessage((IntPtr)HWND_BROADCAST, WM_WININICHANGE, 0xF2, 0);
+
+ // Update registry
+ Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Today", "Wall", @"\Windows\stwater_240_320.jpg");
+
+ Win32Window.SendMessage((IntPtr)HWND_BROADCAST, WM_WININICHANGE, SPI_SETDESKWALLPAPER_POCKETPC, 0);
+ //Win32Window.SendMessage((IntPtr)HWND_BROADCAST, WM_WININICHANGE, SPI_SETDESKWALLPAPER, 0);
}
}
Modified: Trunk/Source/Roam.UI/Utils/ScreenUtils.cs
===================================================================
--- Trunk/Source/Roam.UI/Utils/ScreenUtils.cs 2008-02-09 11:59:17 UTC (rev 113)
+++ Trunk/Source/Roam.UI/Utils/ScreenUtils.cs 2008-02-11 18:29:59 UTC (rev 114)
@@ -16,6 +16,7 @@
using System.Collections.Generic;
using System.Text;
using System.Drawing;
+using System.Windows.Forms;
namespace Roam.UI.Utils
{
@@ -28,6 +29,12 @@
/// <author>Jon Froehlich</author>
public static class ScreenUtils
{
+ public static ScreenOrientation GetScreenOrientation()
+ {
+ return Screen.PrimaryScreen.Bounds.Width > Screen.PrimaryScreen.Bounds.Height ?
+ ScreenOrientation.Landscape : ScreenOrientation.Portrait;
+ }
+
public static Size GetScreenSize()
{
int width = DrawingUtils.GetSystemMetrics(ScreenMetrics.SM_CXSCREEN);
@@ -53,4 +60,10 @@
return bitmap;
}
}
+
+ public enum ScreenOrientation
+ {
+ Portrait,
+ Landscape
+ }
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|