Skip to content

Commit

Permalink
Closes #48
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Zuber committed Jan 4, 2015
1 parent fcd154d commit 4855f2a
Show file tree
Hide file tree
Showing 12 changed files with 4 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## User defined
#################
/packages/
!packages/repositories.config
!packages/packages.config

#################
## Eclipse
Expand Down
3 changes: 0 additions & 3 deletions BusinessLogic/BusinessLogic.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@
<Name>LocalTypes</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- 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.
Expand Down
1 change: 0 additions & 1 deletion Data/Data.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="packages.config" />
<None Include="StaticDataSet.xsc">
<DependentUpon>StaticDataSet.xsd</DependentUpon>
</None>
Expand Down
3 changes: 1 addition & 2 deletions DataAccess/BaseCategoryAccess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Linq;
using System.Text;
using LocalTypes;
using MoreLinq;

namespace DataAccess
{
Expand Down Expand Up @@ -36,7 +35,7 @@ public bool Save(BaseCategory categoryToSave)

internal int GetNextId()
{
return this.LoadAll().MaxBy(ct => ct.Id).Id + 1;
return this.LoadAll().Max(ct => (int?)ct.Id) ?? 1;
}

#endregion
Expand Down
3 changes: 0 additions & 3 deletions DataAccess/DataAccess.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@
<Name>LocalTypes</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- 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.
Expand Down
2 changes: 1 addition & 1 deletion DataAccess/ExpenseAccess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ internal static Expense TranslateFromDataRow(StaticDataSet.t_expensesRow rowTran

internal static int GetNextId()
{
return LoadAll().MaxBy(income => income.ID).ID + 1;
return LoadAll().Max(e => (int?)e.ID) ?? 1;
}

#endregion
Expand Down
2 changes: 1 addition & 1 deletion DataAccess/IncomeAccess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ internal static Income TranslateFromDataRow(StaticDataSet.t_incomesRow rowTransl

internal static int GetNextId()
{
return LoadAll().MaxBy(income => income.ID).ID + 1;
return LoadAll().Max(i => (int?)i.ID) ?? 1;
}

#endregion
Expand Down
3 changes: 0 additions & 3 deletions FrameWork/FrameWork.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SettingsManager.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- 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.
Expand Down
3 changes: 0 additions & 3 deletions LocalTypes/LocalTypes.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@
<Compile Include="PaymentMethod.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- 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.
Expand Down
4 changes: 0 additions & 4 deletions UI/MyHome2013.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.VisualBasic" />
<Reference Include="MoreLinq, Version=1.0.16006.0, Culture=neutral, PublicKeyToken=384d532d7e88985d, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\morelinq.1.0.16006\lib\net35\MoreLinq.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Windows.Forms.DataVisualization" />
Expand Down
1 change: 0 additions & 1 deletion UI/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="morelinq" version="1.0.16006" targetFramework="net451" />
<package id="MySql.Data" version="6.6.5" targetFramework="net40-Client" />
</packages>
7 changes: 0 additions & 7 deletions packages/repositories.config
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<repositories>
<repository path="..\BL\packages.config" />
<repository path="..\BusinessLogic\packages.config" />
<repository path="..\DataAccess\packages.config" />
<repository path="..\DL\packages.config" />
<repository path="..\FrameWork\packages.config" />
<repository path="..\LocalTypes\packages.config" />
<repository path="..\Old_FrameWork\packages.config" />
<repository path="..\UI\packages.config" />
</repositories>

0 comments on commit 4855f2a

Please sign in to comment.