From: <du...@us...> - 2007-05-11 22:08:51
|
Revision: 398 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=398&view=rev Author: dukus Date: 2007-05-11 15:08:49 -0700 (Fri, 11 May 2007) Log Message: ----------- Latest SVN compatibility Modified Paths: -------------- trunk/plugins/mypoker/cards.cs trunk/plugins/mypoker/mypoker.cs trunk/plugins/mypoker/mypoker.csproj trunk/plugins/mypoker/mypoker.suo trunk/plugins/mypoker/skin/MCE/media/mypoker.xml trunk/plugins/mypoker/skin/MCE/media/mypokerwin.xml Modified: trunk/plugins/mypoker/cards.cs =================================================================== --- trunk/plugins/mypoker/cards.cs 2007-05-11 21:31:08 UTC (rev 397) +++ trunk/plugins/mypoker/cards.cs 2007-05-11 22:08:49 UTC (rev 398) @@ -74,7 +74,7 @@ } catch (System.IndexOutOfRangeException ex) { - Log.Write(" Index out :{0}, {1}, i= {2} ", ex.Message, ex.StackTrace, i.ToString()); + Log.Debug(" Index out :{0}, {1}, i= {2} ", ex.Message, ex.StackTrace, i.ToString()); } return i+1; Modified: trunk/plugins/mypoker/mypoker.cs =================================================================== --- trunk/plugins/mypoker/mypoker.cs 2007-05-11 21:31:08 UTC (rev 397) +++ trunk/plugins/mypoker/mypoker.cs 2007-05-11 22:08:49 UTC (rev 398) @@ -2,8 +2,10 @@ using System.Collections; using System.Windows.Forms; using MediaPortal.GUI.Library; +using MediaPortal; using MediaPortal.Util; using MediaPortal.Dialogs; +using MediaPortal.Configuration; using SQLite.NET; @@ -224,10 +226,12 @@ // pokercards.getFace(deckCards[3]), // pokercards.getFace(deckCards[4]) // )); - MediaPortal.Profile.XmlSettingsProvider xmlwriter = new MediaPortal.Profile.XmlSettingsProvider("myPoker.xml"); + + using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings("myPoker.xml")) + { xmlwriter.SetValue("myPoker", "score", score.ToString()); xmlwriter.SetValue("myPoker", "bet", bet.ToString()); - xmlwriter.Save(); + } _iswin = true; GUIWindowManager.ActivateWindow(7179); }; Modified: trunk/plugins/mypoker/mypoker.csproj =================================================================== --- trunk/plugins/mypoker/mypoker.csproj 2007-05-11 21:31:08 UTC (rev 397) +++ trunk/plugins/mypoker/mypoker.csproj 2007-05-11 22:08:49 UTC (rev 398) @@ -51,7 +51,7 @@ <ErrorReport>prompt</ErrorReport> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - <OutputPath>bin\Release\</OutputPath> + <OutputPath>..\mediaportal\xbmc\bin\Release\plugins\windows\</OutputPath> <AllowUnsafeBlocks>false</AllowUnsafeBlocks> <BaseAddress>285212672</BaseAddress> <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow> @@ -74,17 +74,20 @@ <ErrorReport>prompt</ErrorReport> </PropertyGroup> <ItemGroup> - <Reference Include="Core, Version=1.0.2201.1843, Culture=neutral, processorArchitecture=MSIL"> + <Reference Include="Core, Version=0.2.2.0, Culture=neutral, processorArchitecture=x86"> <SpecificVersion>False</SpecificVersion> - <HintPath>G:\Program Files\Team MediaPortal\MediaPortal\Core.dll</HintPath> + <HintPath>..\mediaportal\xbmc\bin\Release\Core.dll</HintPath> + <Private>False</Private> </Reference> - <Reference Include="Databases, Version=1.0.2201.1848, Culture=neutral, processorArchitecture=MSIL"> + <Reference Include="Databases, Version=0.2.2.0, Culture=neutral, processorArchitecture=x86"> <SpecificVersion>False</SpecificVersion> - <HintPath>G:\Program Files\Team MediaPortal\MediaPortal\Databases.dll</HintPath> + <HintPath>..\mediaportal\xbmc\bin\Release\Databases.dll</HintPath> + <Private>False</Private> </Reference> - <Reference Include="Dialogs, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL"> + <Reference Include="Dialogs, Version=0.0.0.0, Culture=neutral, processorArchitecture=x86"> <SpecificVersion>False</SpecificVersion> - <HintPath>G:\Program Files\Team MediaPortal\MediaPortal\plugins\windows\Dialogs.dll</HintPath> + <HintPath>..\mediaportal\xbmc\bin\Release\plugins\windows\Dialogs.dll</HintPath> + <Private>False</Private> </Reference> <Reference Include="System"> <Name>System</Name> @@ -98,6 +101,11 @@ <Reference Include="System.XML"> <Name>System.XML</Name> </Reference> + <Reference Include="Utils, Version=2.1.2.0, Culture=neutral, processorArchitecture=x86"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\mediaportal\xbmc\bin\Release\Utils.dll</HintPath> + <Private>False</Private> + </Reference> </ItemGroup> <ItemGroup> <Compile Include="AssemblyInfo.cs"> Modified: trunk/plugins/mypoker/mypoker.suo =================================================================== (Binary files differ) Modified: trunk/plugins/mypoker/skin/MCE/media/mypoker.xml =================================================================== --- trunk/plugins/mypoker/skin/MCE/media/mypoker.xml 2007-05-11 21:31:08 UTC (rev 397) +++ trunk/plugins/mypoker/skin/MCE/media/mypoker.xml 2007-05-11 22:08:49 UTC (rev 398) @@ -14,7 +14,7 @@ <type>button</type> <id>4</id> <posX>488</posX> - <posY>24</posY> + <posY>50</posY> <label>Bet</label> </control> <control> @@ -139,7 +139,7 @@ <type>button</type> <id>2</id> <posX>48</posX> - <posY>24</posY> + <posY>50</posY> <label>19002</label> <width>184</width> <height>32</height> @@ -148,7 +148,7 @@ <type>button</type> <id>3</id> <posX>264</posX> - <posY>24</posY> + <posY>50</posY> <label>Deal</label> </control> <control> Modified: trunk/plugins/mypoker/skin/MCE/media/mypokerwin.xml =================================================================== --- trunk/plugins/mypoker/skin/MCE/media/mypokerwin.xml 2007-05-11 21:31:08 UTC (rev 397) +++ trunk/plugins/mypoker/skin/MCE/media/mypokerwin.xml 2007-05-11 22:08:49 UTC (rev 398) @@ -14,7 +14,7 @@ <type>button</type> <id>4</id> <posX>520</posX> - <posY>16</posY> + <posY>50</posY> <label>Done</label> </control> <control> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |