reorganized project a little

This commit is contained in:
mgroves 2010-12-26 23:18:10 -05:00
parent 1f3fcf49e2
commit b1b848c788
12 changed files with 30 additions and 28 deletions

View file

@ -5,9 +5,9 @@ using Android.OS;
using Android.Widget; using Android.Widget;
using MonoStockPortfolio.Core.PortfolioRepositories; using MonoStockPortfolio.Core.PortfolioRepositories;
using MonoStockPortfolio.Entities; using MonoStockPortfolio.Entities;
using MonoStockPortfolio.Validation; using MonoStockPortfolio.Framework;
namespace MonoStockPortfolio namespace MonoStockPortfolio.Activites
{ {
[Activity(Label = "Add Position", MainLauncher = false)] [Activity(Label = "Add Position", MainLauncher = false)]
public partial class AddPositionActivity : Activity public partial class AddPositionActivity : Activity

View file

@ -1,10 +1,10 @@
using Android.Widget; using Android.Widget;
namespace MonoStockPortfolio namespace MonoStockPortfolio.Activites
{ {
public partial class AddPositionActivity public partial class AddPositionActivity
{ {
public static string ClassName { get { return "monostockportfolio.AddPositionActivity"; } } public static string ClassName { get { return "monostockportfolio.activites.AddPositionActivity"; } }
public static string Extra_PortfolioID { get { return "monoStockPortfolio.AddPositionActivity.PortfolioID"; } } public static string Extra_PortfolioID { get { return "monoStockPortfolio.AddPositionActivity.PortfolioID"; } }
protected EditText TickerTextBox { get { return FindViewById<EditText>(Resource.id.addPositionTicker); } } protected EditText TickerTextBox { get { return FindViewById<EditText>(Resource.id.addPositionTicker); } }

View file

@ -5,9 +5,9 @@ using Android.OS;
using Android.Widget; using Android.Widget;
using MonoStockPortfolio.Core.PortfolioRepositories; using MonoStockPortfolio.Core.PortfolioRepositories;
using MonoStockPortfolio.Entities; using MonoStockPortfolio.Entities;
using MonoStockPortfolio.Validation; using MonoStockPortfolio.Framework;
namespace MonoStockPortfolio namespace MonoStockPortfolio.Activites
{ {
[Activity(Label = "Add Portfolio", MainLauncher = false)] [Activity(Label = "Add Portfolio", MainLauncher = false)]
public partial class EditPortfolioActivity : Activity public partial class EditPortfolioActivity : Activity

View file

@ -1,10 +1,10 @@
using Android.Widget; using Android.Widget;
namespace MonoStockPortfolio namespace MonoStockPortfolio.Activites
{ {
public partial class EditPortfolioActivity public partial class EditPortfolioActivity
{ {
public static string ClassName { get { return "monostockportfolio.EditPortfolioActivity"; } } public static string ClassName { get { return "monostockportfolio.activites.EditPortfolioActivity"; } }
public static string Extra_PortfolioID { get { return "monoStockPortfolio.EditPortfolioActivity.PortfolioID"; } } public static string Extra_PortfolioID { get { return "monoStockPortfolio.EditPortfolioActivity.PortfolioID"; } }
protected Button SaveButton { get { return FindViewById<Button>(Resource.id.btnSave); } } protected Button SaveButton { get { return FindViewById<Button>(Resource.id.btnSave); } }

View file

@ -8,8 +8,9 @@ using Android.Widget;
using MonoStockPortfolio.Core.PortfolioRepositories; using MonoStockPortfolio.Core.PortfolioRepositories;
using MonoStockPortfolio.Core.Services; using MonoStockPortfolio.Core.Services;
using MonoStockPortfolio.Entities; using MonoStockPortfolio.Entities;
using MonoStockPortfolio.Framework;
namespace MonoStockPortfolio namespace MonoStockPortfolio.Activites
{ {
[Activity(Label = "Stock Portfolio", MainLauncher = true, Icon = "@drawable/icon")] [Activity(Label = "Stock Portfolio", MainLauncher = true, Icon = "@drawable/icon")]
public partial class MainActivity : Activity public partial class MainActivity : Activity

View file

@ -1,10 +1,10 @@
using Android.Widget; using Android.Widget;
namespace MonoStockPortfolio namespace MonoStockPortfolio.Activites
{ {
public partial class MainActivity public partial class MainActivity
{ {
public static string ClassName { get { return "monostockportfolio.MainActivity"; } } public static string ClassName { get { return "monostockportfolio.activites.MainActivity"; } }
protected Button AddPortfolioButton { get { return FindViewById<Button>(Resource.id.btnAddPortfolio); } } protected Button AddPortfolioButton { get { return FindViewById<Button>(Resource.id.btnAddPortfolio); } }
protected ListView PortfolioListView { get { return FindViewById<ListView>(Resource.id.portfolioList); } } protected ListView PortfolioListView { get { return FindViewById<ListView>(Resource.id.portfolioList); } }

View file

@ -10,8 +10,9 @@ using Android.Views;
using Android.Widget; using Android.Widget;
using MonoStockPortfolio.Core; using MonoStockPortfolio.Core;
using MonoStockPortfolio.Core.Services; using MonoStockPortfolio.Core.Services;
using MonoStockPortfolio.Framework;
namespace MonoStockPortfolio namespace MonoStockPortfolio.Activites
{ {
[Activity(Label = "Portfolio")] [Activity(Label = "Portfolio")]
public partial class PortfolioActivity : Activity public partial class PortfolioActivity : Activity

View file

@ -1,10 +1,10 @@
using Android.Widget; using Android.Widget;
namespace MonoStockPortfolio namespace MonoStockPortfolio.Activites
{ {
public partial class PortfolioActivity public partial class PortfolioActivity
{ {
public static string ClassName { get { return "monostockportfolio.PortfolioActivity"; } } public static string ClassName { get { return "monostockportfolio.activites.PortfolioActivity"; } }
public static string Extra_PortfolioID { get { return "monoStockPortfolio.PortfolioActivity.PortfolioID"; } } public static string Extra_PortfolioID { get { return "monoStockPortfolio.PortfolioActivity.PortfolioID"; } }
public long ThisPortofolioId { get { return Intent.GetLongExtra(Extra_PortfolioID, -1); } } public long ThisPortofolioId { get { return Intent.GetLongExtra(Extra_PortfolioID, -1); } }

View file

@ -2,7 +2,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using Android.Widget; using Android.Widget;
namespace MonoStockPortfolio.Validation namespace MonoStockPortfolio.Framework
{ {
public class FormValidator public class FormValidator
{ {

View file

@ -5,7 +5,7 @@ using MonoStockPortfolio.Core.PortfolioRepositories;
using MonoStockPortfolio.Core.Services; using MonoStockPortfolio.Core.Services;
using PostSharp.Aspects; using PostSharp.Aspects;
namespace MonoStockPortfolio namespace MonoStockPortfolio.Framework
{ {
public class IoCAttribute : LocationInterceptionAspect public class IoCAttribute : LocationInterceptionAspect
{ {

View file

@ -1,7 +1,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Text; using System.Text;
namespace MonoStockPortfolio namespace MonoStockPortfolio.Framework
{ {
public static class StringExtensions public static class StringExtensions
{ {

View file

@ -48,27 +48,27 @@
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="AddPositionActivity.designer.cs"> <Compile Include="Activites\AddPositionActivity.designer.cs">
<DependentUpon>AddPositionActivity.cs</DependentUpon> <DependentUpon>AddPositionActivity.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="EditPortfolioActivity.cs" /> <Compile Include="Activites\EditPortfolioActivity.cs" />
<Compile Include="EditPortfolioActivity.designer.cs"> <Compile Include="Activites\EditPortfolioActivity.designer.cs">
<DependentUpon>EditPortfolioActivity.cs</DependentUpon> <DependentUpon>EditPortfolioActivity.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="IoCAttribute.cs" /> <Compile Include="Framework\IoCAttribute.cs" />
<Compile Include="MainActivity.designer.cs"> <Compile Include="Activites\MainActivity.designer.cs">
<DependentUpon>MainActivity.cs</DependentUpon> <DependentUpon>MainActivity.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="PortfolioActivity.cs" /> <Compile Include="Activites\PortfolioActivity.cs" />
<Compile Include="MainActivity.cs" /> <Compile Include="Activites\MainActivity.cs" />
<Compile Include="AddPositionActivity.cs" /> <Compile Include="Activites\AddPositionActivity.cs" />
<Compile Include="PortfolioActivity.designer.cs"> <Compile Include="Activites\PortfolioActivity.designer.cs">
<DependentUpon>PortfolioActivity.cs</DependentUpon> <DependentUpon>PortfolioActivity.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Resources\Resource.Designer.cs" /> <Compile Include="Resources\Resource.Designer.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="StringExtensions.cs" /> <Compile Include="Framework\StringExtensions.cs" />
<Compile Include="Validation\FormValidator.cs" /> <Compile Include="Framework\FormValidator.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="PostSharp.Custom.targets"> <None Include="PostSharp.Custom.targets">