public void GetOptionItem() { try { if (AppSettings.ShowGalleryImage && AppTools.CheckAllowedUploadInServer("Image")) { PostTypeList.Add(new Classes.PostType { Id = 1, TypeText = ActivityContext.GetText(Resource.String.Lbl_ImageGallery), Image = Resource.Drawable.pix_image_icon, ImageColor = "#00b200" }); } if (AppSettings.ShowGalleryVideo && AppTools.CheckAllowedUploadInServer("Video")) { PostTypeList.Add(new Classes.PostType { Id = 2, TypeText = ActivityContext.GetText(Resource.String.Lbl_VideoGallery), Image = Resource.Drawable.pix_video_icon, ImageColor = "#D81B60" }); } if (AppSettings.ShowMention) { PostTypeList.Add(new Classes.PostType { Id = 3, TypeText = ActivityContext.GetText(Resource.String.Lbl_MentionContact), Image = Resource.Drawable.ic__Attach_tag, ImageColor = "" }); } if (AppSettings.ShowCamera && AppTools.CheckAllowedUploadInServer("Image")) { PostTypeList.Add(new Classes.PostType { Id = 4, TypeText = ActivityContext.GetText(Resource.String.Lbl_Camera), Image = Resource.Drawable.ic__Attach_video, ImageColor = "" }); } if (AppSettings.ShowGif && AppTools.CheckAllowedUploadInServer("Image")) { PostTypeList.Add(new Classes.PostType { Id = 5, TypeText = ActivityContext.GetText(Resource.String.Lbl_Gif), Image = Resource.Drawable.pix_gif_icon, ImageColor = "" }); } if (AppSettings.ShowEmbedVideo) { PostTypeList.Add(new Classes.PostType { Id = 6, TypeText = ActivityContext.GetText(Resource.String.Lbl_EmbedVideo), Image = Resource.Drawable.pix_broken_link, ImageColor = "" }); } } catch (Exception e) { Console.WriteLine(e); } }