From 86a9854c885f1ba4f8f75da4911117c3e07d0365 Mon Sep 17 00:00:00 2001 From: mgroves Date: Sun, 26 Dec 2010 21:47:10 -0500 Subject: [PATCH] reorganized activity classes into partials, also changed how IoCAttribute handles a long-running static Context --- MonoStockPortfolio/AddPositionActivity.cs | 14 +-- .../AddPositionActivity.designer.cs | 15 ++++ MonoStockPortfolio/EditPortfolioActivity.cs | 12 +-- .../EditPortfolioActivity.designer.cs | 13 +++ MonoStockPortfolio/IoCAttribute.cs | 12 ++- MonoStockPortfolio/MainActivity.cs | 7 +- MonoStockPortfolio/MainActivity.designer.cs | 12 +++ MonoStockPortfolio/MonoStockPortfolio.csproj | 12 +++ MonoStockPortfolio/PortfolioActivity.cs | 22 ++--- .../PortfolioActivity.designer.cs | 15 ++++ .../Resources/Resource.Designer.cs | 90 +++++++++---------- 11 files changed, 131 insertions(+), 93 deletions(-) create mode 100644 MonoStockPortfolio/AddPositionActivity.designer.cs create mode 100644 MonoStockPortfolio/EditPortfolioActivity.designer.cs create mode 100644 MonoStockPortfolio/MainActivity.designer.cs create mode 100644 MonoStockPortfolio/PortfolioActivity.designer.cs diff --git a/MonoStockPortfolio/AddPositionActivity.cs b/MonoStockPortfolio/AddPositionActivity.cs index e931317..8a33d53 100644 --- a/MonoStockPortfolio/AddPositionActivity.cs +++ b/MonoStockPortfolio/AddPositionActivity.cs @@ -10,17 +10,9 @@ using MonoStockPortfolio.Validation; namespace MonoStockPortfolio { [Activity(Label = "Add Position", MainLauncher = false)] - public class AddPositionActivity : Activity + public partial class AddPositionActivity : Activity { - public static string ClassName { get { return "monostockportfolio.AddPositionActivity"; } } - public static string Extra_PortfolioID { get { return "monoStockPortfolio.AddPositionActivity.PortfolioID"; } } - - private IPortfolioRepository _repo; - - private EditText TickerTextBox { get { return FindViewById(Resource.id.addPositionTicker); } } - private EditText PriceTextBox { get { return FindViewById(Resource.id.addPositionPrice); } } - private EditText SharesTextBox { get { return FindViewById(Resource.id.addPositionShares); } } - private Button SaveButton { get { return FindViewById