protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.PhaseDetailView); PhaseDataService dataService = new PhaseDataService(); selectedPhase = dataService.ReturnPhaseById(1); FindViews(); BindData(); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.PhasesMenuView); phaseListView = FindViewById <ListView>(Resource.Id.PhasesListView); phaseDataService = new PhaseDataService(); allPhases = phaseDataService.GetAllPhases(); phaseListView.Adapter = new PhaseListAdapter(this, allPhases); phaseListView.ItemClick += OnListItemClick; }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.PhasesMenuView); phaseListView = FindViewById <ListView>(Resource.Id.PhasesListView); phaseDataService = new PhaseDataService(); allPhases = phaseDataService.GetAllPhases(); phaseListView.Adapter = new PhaseListAdapter(this, allPhases); phaseListView.ItemClick += OnListItemClick; //todo: add app id to app.config CrashManager.Register(this, "cf7c46caa58a445b8bb574dfb34deea6"); MetricsManager.Register(Application, "cf7c46caa58a445b8bb574dfb34deea6"); MobileCenter.Start("030463a0-0a5d-489f-aaf6-5a87474e2cbd", typeof(Analytics), typeof(Crashes)); }