diff --git a/MonoStockPortfolio/Activites/EditPositionActivity.cs b/MonoStockPortfolio/Activites/EditPositionActivity.cs index a8145e4..fbab684 100644 --- a/MonoStockPortfolio/Activites/EditPositionActivity.cs +++ b/MonoStockPortfolio/Activites/EditPositionActivity.cs @@ -1,6 +1,7 @@ using System; using Android.App; using Android.OS; +using Android.Widget; using MonoStockPortfolio.Core.PortfolioRepositories; using MonoStockPortfolio.Entities; using MonoStockPortfolio.Framework; @@ -12,6 +13,11 @@ namespace MonoStockPortfolio.Activites { [IoC] private IPortfolioRepository _repo; + [LazyView(Resource.Id.addPositionTicker)] protected EditText TickerTextBox; + [LazyView(Resource.Id.addPositionPrice)] protected EditText PriceTextBox; + [LazyView(Resource.Id.addPositionShares)] protected EditText SharesTextBox; + [LazyView(Resource.Id.addPositionSaveButton)] protected Button SaveButton; + protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); diff --git a/MonoStockPortfolio/Activites/EditPositionActivity.designer.cs b/MonoStockPortfolio/Activites/EditPositionActivity.designer.cs index 3e6846d..205f475 100644 --- a/MonoStockPortfolio/Activites/EditPositionActivity.designer.cs +++ b/MonoStockPortfolio/Activites/EditPositionActivity.designer.cs @@ -9,10 +9,5 @@ namespace MonoStockPortfolio.Activites public long ThisPortfolioId { get { return Intent.GetLongExtra(Extra_PortfolioID, -1); } } public static string Extra_PositionID { get { return "monoStockPortfolio.EditPositionActivity.PositionID"; } } public long ThisPositionId { get { return Intent.GetLongExtra(Extra_PositionID, -1); } } - - protected EditText TickerTextBox { get { return FindViewById(Resource.Id.addPositionTicker); } } - protected EditText PriceTextBox { get { return FindViewById(Resource.Id.addPositionPrice); } } - protected EditText SharesTextBox { get { return FindViewById(Resource.Id.addPositionShares); } } - protected Button SaveButton { get { return FindViewById