예제 #1
0
        private void Selected(ImageCellEx cell)
        {
            var item = MeChatHost.MeChat.TalkDataHost.GetById(cell.uId);

            Navigation.PushAsync(new TalkPage(this.MeChat, item)
            {
                Title = MeChat.UserProfileHost.GetNameById(cell.uId)
            }, true);
        }
        private void Selected(ImageCellEx cell)
        {
            var item = MeChatHost.MeChat.Talks.Find((x) => x.ToId == cell.uId);

            Navigation.PushAsync(new TalkPage(item)
            {
                Title = "Talk"
            }, true);
        }
예제 #3
0
        private ImageCellEx GetCell(string id, string name, string message, string icon)
        {
            ImageCellEx ex = null;

            return(ex = new ImageCellEx()
            {
                ImageSource = MeChat.MediaCenter.GetImage(icon, (x) => {
                    Xamarin.Forms.Device.BeginInvokeOnMainThread(() =>
                    {
                        Debug.Log("TalkList", "Change Image On Main Thread.");
                        ex.ImageSource = x;
                    });
                }),
                Detail = message,
                Text = name,
                uId = id
            });
        }