Exemple #1
0
        private async void DialogPage_Refresh(object sender, EventArgs e)
        {
            NetService     net      = new NetService();
            List <Message> Messages = new List <Message> {
            };

            IEnumerable <Message> messages = await net.GetMessages(ReqO);

            ре
            foreach (Message m in messages)
            {
                Messages.Add(m);
            }
            await Navigation.PushAsync(new DialogPage(ReqO, Messages));
        }
Exemple #2
0
        private async void Overview_JoinDialog(object sender, ItemTappedEventArgs e)
        {
            NetService     net      = new NetService();
            Dialog         talk     = e.Item as Dialog;
            List <Message> Messages = new List <Message> {
            };

            ReqO.dialog_id = talk.dialog_id;

            IEnumerable <Message> messages = await net.GetMessages(ReqO);

            foreach (Message m in messages)
            {
                Messages.Add(m);
            }

            await Navigation.PushAsync(new DialogPage(ReqO, Messages));
        }