public void LinearLayout_Click(object sender, EventArgs e) { switch ((sender as View)?.Id) { case Resource.Id.linearLayout2: base.OnBackPressed(); break; case Resource.Id.ll_detailsParent: ProfileActivity.Start(this, Intent.GetStringExtra(BUNDLE_AVATAR_URL), Intent.GetStringExtra(BUNDLE_NAME), Intent.GetStringExtra(BUNDLE_INFO), tvStatus.Text, ivAvatar, card, ivBackground, recyclerView, mListData); if (Build.VERSION.SdkInt >= BuildVersionCodes.Lollipop) { FinishAfterTransition(); } else { Finish(); } break; } }
// Add your own data access methods here. If you wish to // expose your public method to a WCF service, marked them with // the attribute [NCPublish], and another T4 template will generate your service contract /// <summary> /// This method inserts new profile activity details in db /// </summary> /// <param name="pkActivityID">pkActivityID</param> /// <param name="actDetails">actDetails</param> public void InsertProfileActivityDetails(int pkActivityID, string actDetails) { try { using (var unitOfWork = new EFUnitOfWork()) { var usrActRepo = new ProfileActivityRepository(new EFRepository <ProfileActivity>(), unitOfWork); ProfileActivity newProfAct = new ProfileActivity(); newProfAct.FK_UserActivityID = pkActivityID; newProfAct.ProfileActivityDetails = actDetails; usrActRepo.Add(newProfAct); usrActRepo.Save(); } } catch (Exception ex) { CommonErrorLogger.CommonErrorLog(ex, System.Reflection.MethodBase.GetCurrentMethod().Name); throw; } }
public static void OpenUserProfile(UserAccount Account, Android.Content.Context context) { ProfileActivity.SetProfileAccount(Account); context.StartActivity(new Android.Content.Intent(context, typeof(ProfileActivity))); }
#pragma warning restore CS0169 // The field 'UserImagesAdapter.inflater' is never used #endregion #region Constructors public UserImagesAdapter(ProfileActivity profileActivity, List <TwoImages> twoImages) : base() { this.profileActivity = profileActivity; images = twoImages; }
public void Delete(ProfileActivity entity) { Repository.Delete(entity); }
public void Add(ProfileActivity entity) { Repository.Add(entity); }