[Roam-commit] SF.net SVN: roam: [125] Trunk/Source
Status: Alpha
Brought to you by:
jonfroehlich
|
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.
|