using System; using System.Collections.Generic; using System.Linq; using Android.App; using Android.Content; using Android.Graphics; using Android.OS; using Android.Widget; using MonoStockPortfolio.Core; using MonoStockPortfolio.Core.Services; namespace MonoStockPortfolio { [Activity(Label = "Portfolio")] public class PortfolioActivity : Activity { public PortfolioActivity(IntPtr handle) : base(handle) { } public static string ClassName { get { return "monoStockPortfolio.PortfolioActivity"; } } public static string Extra_PortfolioID { get { return "monoStockPortfolio.PortfolioActivity.PortfolioID"; } } private IPortfolioService _svc; private IEnumerable[] longClickOptions; private long ThisPortofolioId { get { return Intent.GetLongExtra(Extra_PortfolioID, -1); } } protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.layout.portfolio); var addPositionButton = FindViewById