public void ConfigureCell(CrmNotesResponse model) { Data = model; IBDateTimeLbl.Text = Data.CreatedDate.ToString("dd-MMM"); IBNotesTitleLbl.Text = Data.NotesSubject; IBTitleLbl.Text = Data.NotesSubject.ToCharArray()[0].ToString(); IBDescLbl.Text = Data.NotesDetail; this.SelectionStyle = UITableViewCellSelectionStyle.None; }
private void ListView_ItemClick(object sender, AdapterView.ItemClickEventArgs e) { int pos = e.Position; CrmNotesResponse noteObj = responseList[pos]; string noteObjString = JsonConvert.SerializeObject(noteObj); Intent intent = new Intent(mActivity, typeof(AddNotesActivity)); intent.PutExtra("isAddNote", false); intent.PutExtra("noteObj", noteObjString); intent.PutExtra("entityCode", _selectedCurrentEntitysItem.EXTRA_TEXT); intent.PutExtra("accountId", _selectedAccountCodeItem.EXTRA_TEXT); intent.PutExtra("accountCode", _selectedAccountCodeItem.SECOND_EXTRA_TEXT); mActivity.StartActivityForResult(intent, ConstantsDroid.NOTES_LIST_REQUEST_CODE); mActivity.OverridePendingTransition(Resource.Animation.animation_enter, Resource.Animation.animation_leave); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); Window.RequestFeature(WindowFeatures.NoTitle); // Set our view from the "main" layout resource SetContentView(Resource.Layout.activity_add_notes); mActivity = this; /// Shared Preference manager mSharedPreferencesManager = UtilityDroid.GetInstance(). GetSharedPreferenceManagerWithEncriptionEnabled(mActivity.ApplicationContext); objLoginResponse = mSharedPreferencesManager.GetLoginResponse(); isAddNote = Intent.GetBooleanExtra("isAddNote", false); if (!isAddNote) { string noteObjString = Intent.GetStringExtra("noteObj"); noteObj = JsonConvert.DeserializeObject <CrmNotesResponse>(noteObjString); entityCode = Intent.GetStringExtra("entityCode"); accountCode = Intent.GetStringExtra("accountCode"); accountId = Intent.GetStringExtra("accountId"); } try { Init(); if (!isAddNote) { SetNotesDetails(); } } catch (Exception e) { } }