using System; using System.Collections.Generic; using System.Linq; using Android.App; using Android.Content; using Android.OS; using Android.Widget; using MonoStockPortfolio.Core.PortfolioRepositories; using MonoStockPortfolio.Core.Services; using MonoStockPortfolio.Entities; namespace MonoStockPortfolio { [Activity(Label = "Stock Portfolio", MainLauncher = true, Icon = "@drawable/icon")] public class MainActivity : Activity { public static string ClassName { get { return "monostockportfolio.MainActivity"; } } [IoC] private IPortfolioService _svc; [IoC] private IPortfolioRepository _repo; private IList _portfolios; private string[] _longClickOptions; protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.layout.main); RefreshList(); WireUpEvents(); } private Button AddPortfolioButton { get { return FindViewById