Example #1
0
        public void SendMessage()
        {
            var contact = this.CurrentContact;

            SendMessageViewModel viewModel = new SendMessageViewModel();

            viewModel.Title = "Send message to " + contact.Name;

            this.sendMessageRequest.Raise(
                viewModel,
                sendMessage =>
            {
                if (sendMessage.Confirmed)
                {
                    this.SendingMessage = true;

                    this.chatService.SendMessage(
                        contact,
                        sendMessage.Message,
                        result =>
                    {
                        this.SendingMessage = false;
                    });
                }
            });
        }
Example #2
0
        public void SendMessage()
        {
            var contact = this.CurrentContact;

            SendMessageViewModel viewModel = new SendMessageViewModel();
            viewModel.Title = "Send message to " + contact.Name;

            this.sendMessageRequest.Raise(
                viewModel,
                sendMessage =>
                {
                    if (sendMessage.Confirmed)
                    {
                        this.SendingMessage = true;

                        this.chatService.SendMessage(
                            contact,
                            sendMessage.Message,
                            result =>
                            {
                                this.SendingMessage = false;
                            });
                    }
                });
        }