public EmptySuggetionRecylerAdapter(Activity context) { ActivityContext = context; SuggetionsMessagesList = new JavaList <SuggetionsMessages>(); SuggetionsMessages a1 = new SuggetionsMessages(); a1.Id = 1; a1.Message = "Say Hi 🖐️"; a1.RealMessage = "Hi 🖐️"; SuggetionsMessages a2 = new SuggetionsMessages(); a2.Id = 2; a2.Message = "How are you?"; a2.RealMessage = "How are you?"; SuggetionsMessages a3 = new SuggetionsMessages(); a3.Id = 3; a3.Message = "Can we speak?"; a3.RealMessage = "Hi"; SuggetionsMessages a4 = new SuggetionsMessages(); a4.Id = 4; a4.Message = "I like your picture ❤️"; a4.RealMessage = "I like your picture ❤️"; SuggetionsMessagesList.Add(a1); SuggetionsMessagesList.Add(a2); SuggetionsMessagesList.Add(a3); SuggetionsMessagesList.Add(a4); }
public void CloneItems(JavaList <CustomerSingle> items) { foreach (var item in items) { _originalList.Add(item); } }
public static JavaList <Fruit> GetFruits() { JavaList <Fruit> fruits = new JavaList <Fruit>(); Fruit fruit = null; //ADD FRUITS fruit = new Fruit(); fruit.Name = "Mango"; fruit.Image = Resource.Drawable.mango; fruits.Add(fruit); fruit = new Fruit(); fruit.Name = "Oranges"; fruit.Image = Resource.Drawable.oranges; fruits.Add(fruit); fruit = new Fruit(); fruit.Name = "Coconut"; fruit.Image = Resource.Drawable.coconut; fruits.Add(fruit); fruit = new Fruit(); fruit.Name = "Grapes"; fruit.Image = Resource.Drawable.grapes; fruits.Add(fruit); fruit = new Fruit(); fruit.Name = "Apples"; fruit.Image = Resource.Drawable.apples; fruits.Add(fruit); return(fruits); }
void UpdateData(JavaList <IDictionary <string, object> > data, ListView lv) { data.Clear(); var testTarget = SetupTestTarget(); foreach (var test in GetChildTests(testTarget)) { TestResult res; AndroidRunner.Results.TryGetValue(test.FullName, out res); if (test is TestSuite) { var suite = test as TestSuite; data.Add(new TestData(suite.FullName, res != null && res.PassCount > 0 ? res.PassCount + " passed" : null, res != null && res.FailCount > 0 ? res.FailCount + " failed" : null, res != null && res.SkipCount > 0 ? res.SkipCount + " ignored" : null, res != null && res.InconclusiveCount > 0 ? res.InconclusiveCount + " inconclusive" : null, res == null ? null : res.ResultState.Status.ToString(), res == null ? null : res.Message)); } else if (test is NUnitTest) { data.Add(new TestData(test.FullName, null, null, null, null, res == null ? null : res.ResultState.Status.ToString(), res == null ? null : res.Message)); } } lv.Adapter = new TestDataAdapter(this, data, Resource.Layout.results, from_cols, to_ids); }
void LoadChildrenImpl(string parentId, Result result) { LogHelper.Debug(Tag, "OnLoadChildren: parentMediaId=", parentId); var mediaItems = new JavaList <MediaBrowser.MediaItem> (); if (MediaIDHelper.MediaIdRoot == parentId) { LogHelper.Debug(Tag, "OnLoadChildren.ROOT"); mediaItems.Add(new MediaBrowser.MediaItem( new MediaDescription.Builder() .SetMediaId(MediaIDHelper.MediaIdMusicsByGenre) .SetTitle(GetString(Resource.String.browse_genres)) .SetIconUri(Android.Net.Uri.Parse("android.resource://" + "com.example.android.mediabrowserservice/drawable/ic_by_genre")) .SetSubtitle(GetString(Resource.String.browse_genre_subtitle)) .Build(), MediaItemFlags.Browsable )); } else if (MediaIDHelper.MediaIdMusicsByGenre == parentId) { LogHelper.Debug(Tag, "OnLoadChildren.GENRES"); foreach (var genre in musicProvider.Genres) { var item = new MediaBrowser.MediaItem( new MediaDescription.Builder() .SetMediaId(MediaIDHelper.CreateBrowseCategoryMediaID(MediaIDHelper.MediaIdMusicsByGenre, genre)) .SetTitle(genre) .SetSubtitle(GetString(Resource.String.browse_musics_by_genre_subtitle, genre)) .Build(), MediaItemFlags.Browsable ); mediaItems.Add(item); } } else if (parentId.StartsWith(MediaIDHelper.MediaIdMusicsByGenre)) { var genre = MediaIDHelper.GetHierarchy(parentId) [1]; LogHelper.Debug(Tag, "OnLoadChildren.SONGS_BY_GENRE genre=", genre); foreach (var track in musicProvider.GetMusicsByGenre(genre)) { var hierarchyAwareMediaID = MediaIDHelper.CreateMediaID( track.Description.MediaId, MediaIDHelper.MediaIdMusicsByGenre, genre); var trackCopy = new MediaMetadata.Builder(track) .PutString(MediaMetadata.MetadataKeyMediaId, hierarchyAwareMediaID) .Build(); var bItem = new MediaBrowser.MediaItem( trackCopy.Description, MediaItemFlags.Playable); mediaItems.Add(bItem); } } else { LogHelper.Warn(Tag, "Skipping unmatched parentMediaId: ", parentId); } LogHelper.Debug(Tag, "OnLoadChildren sending ", mediaItems.Count, " results for ", parentId); result.SendResult(mediaItems); }
private JavaList <Android.Support.V4.App.Fragment> Getfragment() { fragment = new JavaList <Android.Support.V4.App.Fragment>(); fragment.Add(new WordFragment()); fragment.Add(new GrammarFragment()); fragment.Add(new StoriesFragment()); fragment.Add(new TestFragment()); return(fragment); }
public void RetrieveWorkouts() { MyWorkoutList.Add(new WorkoutItem() { title = "Friday workout", exercises = "Weighted Pull Ups\nBarbell Full Squat\nSingle-Arm Linear Jammer\nLandmine 180's", expanded = false }); adapter.NotifyDataSetChanged(); MyWorkoutList.Add(new WorkoutItem() { title = "wednesday prancercise", exercises = "Bench Press\nDeadlift with Chains\nBox Squat\nKneeling Squat", expanded = false }); adapter.NotifyDataSetChanged(); }
public ItemAdapter PopulateItems(Activity activity, int resourceId, int textsomething) { if (itemLock == false) { JavaList <ItemSingle> activeItems = new JavaList <ItemSingle>(); if (item != null) { System.Collections.IEnumerator itemEnum = item.GetEnumerator(); itemEnum.Reset(); int i = 0; while (itemEnum.MoveNext()) { Item active = (Item)itemEnum.Current; activeItems.Add(new ItemSingle(active.No_, active.Description, active.Unit_List_Price, active.Unit_Price, active.Sales_Unit_of_Measure, i)); i++; } } ItemAdapter items = new ItemAdapter(activity, resourceId, textsomething, activeItems); return(items); } else { return(null); } }
public CustomerAdapter PopulateCustomers(Activity activity, int resourceId, int textsomething) { if (customersLock == false) { CustomerAdapter custs = null;//,new List<CustomerSingle>()); JavaList <CustomerSingle> custsList = new JavaList <CustomerSingle>(); if (customers != null) { System.Collections.IEnumerator custEnum = customers.GetEnumerator(); custEnum.Reset(); int i = 0; while (custEnum.MoveNext()) { Customer active = (Customer)custEnum.Current; custsList.Add(new CustomerSingle(active.No_, active.Name, active.Address, i)); i++; } } custs = new CustomerAdapter(activity, resourceId, textsomething, custsList); return(custs); } else { return(null); } }
protected override FilterResults PerformFiltering(ICharSequence constraint) { // throw new NotImplementedException(); long magazinId = Long.ParseLong(constraint.ToString()); FilterResults results = new FilterResults(); if (magazinId > 0) { JavaList <Product> filterList = new JavaList <Product>(); for (int i = 0; i < productFilterList.Count; i++) { if ((productFilterList.ElementAt <Product>(i).magazinId) == magazinId) { Product product = productFilterList.ElementAt <Product>(i); filterList.Add(product); } } results.Count = filterList.Count; results.Values = filterList; } else { results.Count = productFilterList.Count; results.Values = productFilterList; } return(results); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); m_baseurl = Intent.GetStringArrayListExtra("BASE_URL")[0]; m_upd = new TrackListUpdater(m_baseurl + "static/songlist.dat"); // Create your application here SetContentView(Resource.Layout.AddTrack); ListView trackToAdd = FindViewById <ListView>(Resource.Id.AddTrackList); m_tracks = new JavaList <Track>(); m_upd.Update(m_tracks); TrackListArrayAdapter adapter = new TrackListArrayAdapter(this, m_tracks); trackToAdd.Adapter = adapter; trackToAdd.ItemClick += (sender, e) => { IList <Track> original_tracklist = new JavaList <Track>(); TrackListUpdater original_upd = new TrackListUpdater(m_baseurl + "cgi-bin/getpage.cgi"); original_upd.Update(original_tracklist); Track t = m_tracks[e.Position]; original_tracklist.Add(t); original_upd.SendToServer(original_tracklist); this.Finish(); }; Button cancel = FindViewById <Button>(Resource.Id.CancelAddTrack); cancel.Click += (sender, e) => { this.Finish(); }; }
public static JavaList <Projects> SpinnerProjects() { var projects = new JavaList <Projects>(); Projects allProjects = null; projects.Clear(); DBHelper dbh = new DBHelper(); //db conn ICursor c = dbh.ReadAllProjects(); //goal list while (c.MoveToNext()) { string projectId = c.GetString(0); string project = c.GetString(1); string projectDesc = c.GetString(2); string projectStart = c.GetString(3); string projectDeadline = c.GetString(4); string projectBudget = c.GetString(5); string projectStatus = c.GetString(6); allProjects = new Projects(); allProjects.Id = Convert.ToInt32(projectId); allProjects.Project = project; projects.Add(project); } return(projects); }
public static JavaList <Projects> GetProjects() { var projects = new JavaList <Projects>(); Projects allProjects = null; projects.Clear(); DBHelper dbh = new DBHelper(); ICursor c = dbh.ReadAllProjects(); while (c.MoveToNext()) { string projectId = c.GetString(0); string project = c.GetString(1); string projectDesc = c.GetString(2); string projectStart = c.GetString(3); string projectDeadline = c.GetString(4); string projectBudget = c.GetString(5); string projectStatus = c.GetString(6); allProjects = new Projects(); allProjects.Id = Convert.ToInt32(projectId); allProjects.Project = project; allProjects.ProjectDesc = projectDesc; allProjects.ProjectStart = projectStart; allProjects.ProjectDeadline = projectDeadline; allProjects.ProjectBudget = Convert.ToDecimal(projectBudget); allProjects.ProjectStatus = projectStatus; projects.Add(allProjects); } return(projects); }
public ImageAlbums() { var projection = new[] { MediaStore.Images.Media.InterfaceConsts.BucketId, MediaStore.Images.Media.InterfaceConsts.BucketDisplayName, MediaStore.Images.Media.InterfaceConsts.Data }; var cursor = Application.Context.ContentResolver.Query(MediaStore.Images.Media.ExternalContentUri, projection, null, null, MediaStore.Images.Media.InterfaceConsts.DateModified); Covers = new JavaList <AlbumCover>(); Images = new Dictionary <long, JavaList <string> >(); if (cursor.MoveToLast()) { do { long albumID = cursor.GetLong(cursor.GetColumnIndex(projection[0])); string imagePath = cursor.GetString(cursor.GetColumnIndex(projection[2])); if (!Images.ContainsKey(albumID)) { Images.Add(albumID, new JavaList <string>()); var cover = new AlbumCover { albumId = albumID, itemName = cursor.GetString(cursor.GetColumnIndex(projection[1])), imagePath = imagePath }; Covers.Add(cover); } Images[albumID].Add(imagePath); } while (cursor.MoveToPrevious()); } }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.Map); var mapFrag = MapFragment.NewInstance(); FragmentManager.BeginTransaction() .Add(Resource.Id.map, mapFrag, "map_fragment") .Commit(); // Create your application here // MapFragment mapFragment = (MapFragment)FragmentManager.FindFragmentById(Resource.Id.map); mapFrag.GetMapAsync(this); database = new DataBaseClass(); mDepozit = new JavaList <Depozit>(); foreach (Depozit d in database.getAllDepozite()) { mDepozit.Add(d); } btnNormal = FindViewById <Button>(Resource.Id.btnNormal); btnHybrid = FindViewById <Button>(Resource.Id.btnHybrid); btnSatellite = FindViewById <Button>(Resource.Id.btnSatellite); btnTerrain = FindViewById <Button>(Resource.Id.btnTerrain); btnNormal.Click += BtnNormal_Click; btnHybrid.Click += BtnHybrid_Click; btnSatellite.Click += BtnSatellite_Click; btnTerrain.Click += BtnTerrain_Click; }
//Get All Shopping Lists public static JavaList <ShoppingLists> GetShoppingLists() { var lists = new JavaList <ShoppingLists>(); ShoppingLists allLists = null; lists.Clear(); DBHelper dbh = new DBHelper(); //db conn ICursor c = dbh.ReadAllShoppingLists(); //shopping lists while (c.MoveToNext()) { string listId = c.GetString(0); string title = c.GetString(1); string listDesc = c.GetString(2); string shoppingDate = c.GetString(3); string expBudget = c.GetString(4); string actBudget = c.GetString(5); string listStatus = c.GetString(6); allLists = new ShoppingLists(); allLists.Id = Convert.ToInt32(listId); allLists.ListTitle = title; allLists.ListDesc = listDesc; allLists.ShoppingDate = shoppingDate; allLists.ExpectedBudget = Convert.ToDecimal(expBudget); allLists.ListStatus = listStatus; lists.Add(allLists); } return(lists); }
protected override FilterResults PerformFiltering(ICharSequence constraint) { if (constraint != null && constraint.Length() > 0) { string query = constraint.ToString().ToUpper(); JavaList <AppUsers> foundFilter = new JavaList <AppUsers>(); for (int i = 0; i < currentList.Size(); i++) { string name = currentList[i].Name; string email = currentList[i].Email; string contact = currentList[i].PhoneNumber; if (name.ToUpper().Contains(query.ToString()) || email.ToUpper().Contains(query.ToString()) || contact.ToUpper().Contains(query.ToString())) { foundFilter.Add(new AppUsers { Name = currentList[i].Name , PhoneNumber = currentList[i].PhoneNumber , Email = currentList[i].Email }); } } filterResults.Count = foundFilter.Size(); filterResults.Values = foundFilter; } else { filterResults.Count = currentList.Size(); filterResults.Values = currentList; } return(filterResults); }
private void ReloadData(int startId) { m_AllTasks.Clear(); foreach (var task in DataManager.GetClearedTasks(SortOption.Newest)) { m_AllTasks.Add(task); } RunOnUiThread(() => { ListAdapter = new ClearedTaskAdapter(this, m_AllTasks); if (ListView.Visibility == ViewStates.Gone) { ListView.Visibility = ViewStates.Visible; ListView.StartAnimation(AnimationUtils.LoadAnimation(this, Resource.Animation.fadein)); } }); if (startId == 0) { return; } var firstTask = m_AllTasks.FirstOrDefault(t => t.ID == startId); if (firstTask == null) { return; } var itemIndex = m_AllTasks.IndexOf(firstTask); RunOnUiThread(() => ListView.SetSelection(itemIndex)); }
public static JavaList <string> GetJavaStringList(List <string> items, string first = null) { JavaList <string> javaObjects = new JavaList <string>(); if (first != null) { javaObjects.Add(first); } for (int index = 0; index < items.Count; index++) { string item = items[index]; javaObjects.Add(item); } return(javaObjects); }
public void NullStringMarshalsAsIntPtrZero() { var list = new JavaList <string> (); list.Add(null); Assert.AreEqual(null, list [0]); }
//Get Goal Tasks public static JavaList <GoalTasks> GetGoalTasks(int gId) { var tasks = new JavaList <GoalTasks>(); GoalTasks allTasks = null; tasks.Clear(); DBHelper dbh = new DBHelper(); ICursor c = dbh.ReadAllGoalTasks(gId); while (c.MoveToNext()) { string taskId = c.GetString(0); string task = c.GetString(1); string taskGoal = c.GetString(2); string taskDesc = c.GetString(3); string taskStart = c.GetString(4); string taskDeadline = c.GetString(5); string taskStatus = c.GetString(7); allTasks = new GoalTasks(); allTasks.Id = Convert.ToInt32(taskId); allTasks.Task = task; allTasks.Goal = Convert.ToInt32(taskGoal); allTasks.TaskDesc = taskDesc; allTasks.TaskStart = taskStart; allTasks.TaskDeadline = taskDeadline; allTasks.TaskStatus = taskStatus; tasks.Add(allTasks); } return(tasks); }
protected override FilterResults PerformFiltering(ICharSequence constraint) { FilterResults filterResults = new FilterResults(); if (constraint != null && constraint.Length() > 0) { string query = constraint.ToString().ToUpper(); JavaList <Item> filteredItems = new JavaList <Item>(); for (int i = 0; i < currentItems.NumItems; i++) { string itemName = currentItems[i].Text; if (itemName.ToUpper().Contains(query.ToString())) { filteredItems.Add(currentItems[i]); } } filterResults.Count = filteredItems.Count; filterResults.Values = filteredItems; } else { filterResults.Count = currentItems.NumItems; filterResults.Values = currentItems.getItems(); } return(filterResults); }
//Get Goal Names public static JavaList <Goals> SpinnerGoals() { var goals = new JavaList <Goals>(); Goals allGoals = null; goals.Clear(); DBHelper dbh = new DBHelper(); //db conn ICursor c = dbh.ReadAllGoals(); //goal list while (c.MoveToNext()) { string goalId = c.GetString(0); string goal = c.GetString(1); string goalDesc = c.GetString(2); string goalStart = c.GetString(3); string goalDeadline = c.GetString(4); string goalStatus = c.GetString(5); allGoals = new Goals(); allGoals.Id = Convert.ToInt32(goalId); allGoals.Goal = goal; goals.Add(goal); } return(goals); }
private Boolean ParseData() { try { JSONArray ja = new JSONArray(jsonData); JSONObject jo; spacecrafts = new JavaList <string>(); for (int i = 0; i < ja.Length(); i++) { jo = ja.GetJSONObject(i); int id = jo.GetInt("id"); string name = jo.GetString("name"); spacecrafts.Add(name); } return(true); } catch (Exception e) { Console.WriteLine(e.Message); } return(false); }
private void LoadChildrenImpl(string parentId, Result result) { var mediaItems = new JavaList <MediaBrowser.MediaItem>(); if (HierarchyHelper.PodcastRoot == parentId) { Logger.Debug("Load ROOT"); mediaItems.Add(new MediaBrowser.MediaItem( new MediaDescription.Builder() .SetMediaId(HierarchyHelper.PodcastsByMonth) .SetTitle("All Playlists") .SetIconUri(Android.Net.Uri.Parse("android.resource://com.henry.mypodcast/drawable/ic_by_genre")) .SetSubtitle("Bursts By Playlist") .Build(), MediaItemFlags.Browsable)); } else if (HierarchyHelper.PodcastsByMonth == parentId) { Logger.Debug("Load BYMONTH List"); foreach (var playlist in _musicProvider._playlists) { var item = new MediaBrowser.MediaItem( new MediaDescription.Builder() .SetMediaId(HierarchyHelper.PodcastsByMonth + HierarchyHelper.CategorySeparator + playlist.Id.ToString()) .SetTitle(playlist.Name) .SetSubtitle($"{playlist.Name} Bursts") .Build(), MediaItemFlags.Browsable); mediaItems.Add(item); } } else if (parentId.StartsWith(HierarchyHelper.PodcastsByMonth)) { var playlistId = int.Parse(HierarchyHelper.GetHierarchy(parentId)[1]); Logger.Debug("Load List of Podcasts for Month"); foreach (var track in _musicProvider.GetMusicsByPlaylist(playlistId)) { var hierarchyAwareMediaID = HierarchyHelper.EncodeMediaID( track.Description.MediaId, HierarchyHelper.PodcastsByMonth, playlistId.ToString()); var trackCopy = new MediaMetadata.Builder(track) .PutString(MediaMetadata.MetadataKeyMediaId, hierarchyAwareMediaID) .Build(); var bItem = new MediaBrowser.MediaItem( trackCopy.Description, MediaItemFlags.Playable); mediaItems.Add(bItem); } } result.SendResult(mediaItems); }
private void AddNewTask() { var task = m_TaskEditText.Text.Trim(); if (string.IsNullOrWhiteSpace(task)) { return; } m_DataChanged = true; var newTask = new TaskModel { Task = task }; try { DataManager.SaveTask(newTask); var selection = 0; switch (Settings.SortBy) { case SortOption.Newest: m_AllTasks.Insert(0, newTask); SetChecks(); break; case SortOption.Oldest: m_AllTasks.Add(newTask); selection = m_AllTasks.Count - 1; break; } m_TaskEditText.Text = string.Empty; RunOnUiThread(() => { ((TaskAdapter)ListAdapter).NotifyDataSetChanged(); ListView.SetSelection(selection); }); } catch (Exception) { RunOnUiThread(() => Toast.MakeText(this, Resource.String.unable_to_save, ToastLength.Short).Show()); } }
public static JavaList <int> GetJavaPicList(List <string> items, string first = null) { JavaList <int> javaObjects = new JavaList <int>(); if (first != null) { javaObjects.Add(-1); } for (int index = 0; index < items.Count; index++) { string item = items[index]; int picId = UtilsDroid.String2Pic(item); javaObjects.Add(item); } return(javaObjects); }
public static JavaList <TVShow> GetTvShows() { JavaList <TVShow> tvshows = new JavaList <TVShow>(); TVShow tvShow = new TVShow(); tvShow.Name = "BlackList"; tvShow.Image = Resource.Drawable.red; tvshows.Add(tvShow); tvShow = new TVShow(); tvShow.Name = "Breaking Bad"; tvShow.Image = Resource.Drawable.breaking; tvshows.Add(tvShow); tvShow = new TVShow(); tvShow.Name = "Fruits"; tvShow.Image = Resource.Drawable.fruits; tvshows.Add(tvShow); tvShow = new TVShow(); tvShow.Name = "Crisis"; tvShow.Image = Resource.Drawable.crisis; tvshows.Add(tvShow); tvShow = new TVShow(); tvShow.Name = "Game of Thrones"; tvShow.Image = Resource.Drawable.thrones; tvshows.Add(tvShow); tvShow = new TVShow(); tvShow.Name = "Black"; tvShow.Image = Resource.Drawable.blacklist; tvshows.Add(tvShow); tvShow = new TVShow(); tvShow.Name = "Ghost Rider"; tvShow.Image = Resource.Drawable.rider; tvshows.Add(tvShow); tvShow = new TVShow(); tvShow.Name = "Shutle Carrier"; tvShow.Image = Resource.Drawable.shuttlecarrier; tvshows.Add(tvShow); tvShow = new TVShow(); tvShow.Name = "Star Wars"; tvShow.Image = Resource.Drawable.starwars; tvshows.Add(tvShow); return(tvshows); }
private JavaList <Projeto> GetProjetos() { projetos = new JavaList <Projeto>(); Projeto proj; proj = new Projeto("Código de Barras", Resource.Drawable.barcode); projetos.Add(proj); proj = new Projeto("NFC - NDEF", Resource.Drawable.nfc2); projetos.Add(proj); proj = new Projeto("Sensor de Presença", Resource.Drawable.sensor); projetos.Add(proj); proj = new Projeto("FALA G-Bot", Resource.Drawable.speaker); projetos.Add(proj); proj = new Projeto("Modo Quiosque", Resource.Drawable.kiosk); projetos.Add(proj); proj = new Projeto("Tef", Resource.Drawable.pos); projetos.Add(proj); proj = new Projeto("SAT", Resource.Drawable.icon_sat); projetos.Add(proj); return(projetos); }
public EmptySuggetionRecylerAdapter(Activity context) { try { var activityContext = context; SuggetionsMessagesList = new JavaList <SuggestionMessages>(); SuggestionMessages a1 = new SuggestionMessages { Id = 1, Message = activityContext.GetText(Resource.String.Lbl_SuggestionMessages1), RealMessage = activityContext.GetText(Resource.String.Lbl_SuggestionRealMessages1) }; SuggestionMessages a2 = new SuggestionMessages { Id = 2, Message = activityContext.GetText(Resource.String.Lbl_SuggestionMessages2), RealMessage = activityContext.GetText(Resource.String.Lbl_SuggestionRealMessages2) }; SuggestionMessages a3 = new SuggestionMessages { Id = 3, Message = activityContext.GetText(Resource.String.Lbl_SuggestionMessages3), RealMessage = activityContext.GetText(Resource.String.Lbl_SuggestionRealMessages3) }; SuggestionMessages a4 = new SuggestionMessages { Id = 4, Message = activityContext.GetText(Resource.String.Lbl_SuggestionMessages4), RealMessage = activityContext.GetText(Resource.String.Lbl_SuggestionRealMessages4) }; SuggetionsMessagesList.Add(a1); SuggetionsMessagesList.Add(a2); SuggetionsMessagesList.Add(a3); SuggetionsMessagesList.Add(a4); } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }