public void Update(SocialItem item, string linkName)
        {
            try
            {
                var data = SocialList.FirstOrDefault(a => a.Id == item.Id);
                if (data != null)
                {
                    switch (string.IsNullOrEmpty(linkName))
                    {
                    case false:
                        data.SocialLinkName = linkName;
                        data.Checkvisibilty = true;
                        break;

                    default:
                        data.Checkvisibilty = false;
                        break;
                    }

                    NotifyItemChanged(SocialList.IndexOf(data));
                }
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
Beispiel #2
0
        public void Update(SocialItem item, string linkName)
        {
            try
            {
                var data = SocialList.FirstOrDefault(a => a.Id == item.Id);
                if (data != null)
                {
                    if (!string.IsNullOrEmpty(linkName))
                    {
                        data.SocialLinkName = linkName;
                        data.Checkvisibilty = true;
                    }
                    else
                    {
                        data.Checkvisibilty = false;
                    }

                    NotifyItemChanged(SocialList.IndexOf(data));
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }