applied LazyView to EditPortfolioActivity

This commit is contained in:
mgroves 2011-02-20 12:10:50 -05:00
parent e51bf3d8df
commit d2bd5598bd
2 changed files with 4 additions and 3 deletions

View file

@ -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);

View file

@ -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); } }
}
}