mirror of
https://github.com/mgroves/MonodroidStockPortfolio.git
synced 2024-11-15 03:00:23 +00:00
applied LazyView to EditPortfolioActivity
This commit is contained in:
parent
e51bf3d8df
commit
d2bd5598bd
2 changed files with 4 additions and 3 deletions
|
@ -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,9 @@ namespace MonoStockPortfolio.Activites
|
|||
{
|
||||
[IoC] private IPortfolioRepository _repo;
|
||||
|
||||
[LazyView(Resource.Id.btnSave)] protected Button SaveButton;
|
||||
[LazyView(Resource.Id.portfolioName)] protected EditText PortfolioName;
|
||||
|
||||
protected override void OnCreate(Bundle bundle)
|
||||
{
|
||||
base.OnCreate(bundle);
|
||||
|
|
|
@ -7,8 +7,5 @@ namespace MonoStockPortfolio.Activites
|
|||
public static string ClassName { get { return "monostockportfolio.activites.EditPortfolioActivity"; } }
|
||||
public static string Extra_PortfolioID { get { return "monoStockPortfolio.EditPortfolioActivity.PortfolioID"; } }
|
||||
public long ThisPortfolioId { get { return Intent.GetLongExtra(Extra_PortfolioID, -1); } }
|
||||
|
||||
protected Button SaveButton { get { return FindViewById<Button>(Resource.Id.btnSave); } }
|
||||
protected EditText PortfolioName { get { return FindViewById<EditText>(Resource.Id.portfolioName); } }
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue