mirror of
https://github.com/mgroves/MonodroidStockPortfolio.git
synced 2024-12-28 03:00:17 +00:00
applied LazyView to EditPositionActivity
This commit is contained in:
parent
afb00c6f19
commit
e51bf3d8df
2 changed files with 6 additions and 5 deletions
|
@ -1,6 +1,7 @@
|
||||||
using System;
|
using System;
|
||||||
using Android.App;
|
using Android.App;
|
||||||
using Android.OS;
|
using Android.OS;
|
||||||
|
using Android.Widget;
|
||||||
using MonoStockPortfolio.Core.PortfolioRepositories;
|
using MonoStockPortfolio.Core.PortfolioRepositories;
|
||||||
using MonoStockPortfolio.Entities;
|
using MonoStockPortfolio.Entities;
|
||||||
using MonoStockPortfolio.Framework;
|
using MonoStockPortfolio.Framework;
|
||||||
|
@ -12,6 +13,11 @@ namespace MonoStockPortfolio.Activites
|
||||||
{
|
{
|
||||||
[IoC] private IPortfolioRepository _repo;
|
[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)
|
protected override void OnCreate(Bundle bundle)
|
||||||
{
|
{
|
||||||
base.OnCreate(bundle);
|
base.OnCreate(bundle);
|
||||||
|
|
|
@ -9,10 +9,5 @@ namespace MonoStockPortfolio.Activites
|
||||||
public long ThisPortfolioId { get { return Intent.GetLongExtra(Extra_PortfolioID, -1); } }
|
public long ThisPortfolioId { get { return Intent.GetLongExtra(Extra_PortfolioID, -1); } }
|
||||||
public static string Extra_PositionID { get { return "monoStockPortfolio.EditPositionActivity.PositionID"; } }
|
public static string Extra_PositionID { get { return "monoStockPortfolio.EditPositionActivity.PositionID"; } }
|
||||||
public long ThisPositionId { get { return Intent.GetLongExtra(Extra_PositionID, -1); } }
|
public long ThisPositionId { get { return Intent.GetLongExtra(Extra_PositionID, -1); } }
|
||||||
|
|
||||||
protected EditText TickerTextBox { get { return FindViewById<EditText>(Resource.Id.addPositionTicker); } }
|
|
||||||
protected EditText PriceTextBox { get { return FindViewById<EditText>(Resource.Id.addPositionPrice); } }
|
|
||||||
protected EditText SharesTextBox { get { return FindViewById<EditText>(Resource.Id.addPositionShares); } }
|
|
||||||
protected Button SaveButton { get { return FindViewById<Button>(Resource.Id.addPositionSaveButton); } }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue