Exemplo n.º 1
0
        /// <summary>
        /// Reject remote player during connection phase.
        /// </summary>
        /// <param name="reason">The rejection reason.</param>
        void RejectPlayer(string reason)
        {
            MessagesList.AddMessage(
                $"Player {players[1].GetName()} connection rejected. {reason}",
                MessageSeverity.Error);

            Logger.Error($"Player rejected. {reason}");
            SendHandshake(players[1]);
            players[1].Dispose();
            players[1] = null;
        }
Exemplo n.º 2
0
 private void LogOutButton_Click(object sender, RoutedEventArgs e)
 {
     MessagesList.LoadMoreItemsAsync().Cancel();
     MicrosoftGraphService.Instance.Logout();
     MessagesList.Visibility  = Visibility.Collapsed;
     MessagesBox.Visibility   = Visibility.Collapsed;
     LogOutButton.Visibility  = Visibility.Collapsed;
     UserBox.Visibility       = Visibility.Collapsed;
     ClientIdBox.Visibility   = Visibility.Visible;
     ConnectButton.Visibility = Visibility.Visible;
 }
Exemplo n.º 3
0
        private void CheckVariablesUsage()
        {
            LexicalAnalyzer lexAnalyzer = new LexicalAnalyzer();
            SyntaxAnalyzer  syntaxAnalyzer;

            foreach (Transition trans in TransitionsList)
            {
                if (trans is SimpleTransition strans)
                {
                    lexAnalyzer.Source = strans.Condition;
                    syntaxAnalyzer     = new SyntaxAnalyzer(lexAnalyzer, VariableCollection.GetConditionDictionary(trans.OwnerDraw.OwnerSheet).Keys.ToList());
                    foreach (SyntaxToken token in syntaxAnalyzer.Tokens)
                    {
                        if (token.Qualifier != SyntaxToken.Qualifiers.Correct)
                        {
                            MessagesList.Add(new CheckMessage(CheckMessage.MessageTypes.Error, string.Format("{0}: {1}.", trans.Name, token.ToString()), trans));
                        }
                    }
                    foreach (string outputOperation in strans.OutputsList)
                    {
                        string outputName = LexicalRules.GetOutputId(outputOperation);
                        if (!trans.OwnerDraw.OwnerSheet.Variables.InternalOutputs.Exists(output => output.Name == outputName))
                        {
                            MessagesList.Add(new CheckMessage(CheckMessage.MessageTypes.Error, "Output " + outputName + " is not defined in variables list.", trans));
                        }
                    }
                }
            }
            foreach (DrawableObject obj in ObjectsTable)
            {
                if (obj is State state)
                {
                    //state.EnterOutputsList.RemoveAll(str => !state.OwnerDraw.OwnerSheet.Variables.InternalOutputs.Exists(var => var.Name == LexicalAnalyzer.GetId(str)));
                    foreach (string outputOperation in state.EnterOutputsList)
                    {
                        string outputName = LexicalRules.GetOutputId(outputOperation);
                        if (!state.OwnerDraw.OwnerSheet.Variables.InternalOutputs.Exists(var => var.Name == LexicalAnalyzer.GetId(outputName)))
                        {
                            MessagesList.Add(new CheckMessage(CheckMessage.MessageTypes.Error, "Output " + outputName + " is not defined in variables list.", state));
                        }
                    }
                    //state.ExitOutputsList.RemoveAll(str => !state.OwnerDraw.OwnerSheet.Variables.InternalOutputs.Exists(var => var.Name == LexicalAnalyzer.GetId(str)));
                    foreach (string outputOperation in state.ExitOutputsList)
                    {
                        string outputName = LexicalRules.GetOutputId(outputOperation);
                        if (!state.OwnerDraw.OwnerSheet.Variables.InternalOutputs.Exists(var => var.Name == LexicalAnalyzer.GetId(outputName)))
                        {
                            MessagesList.Add(new CheckMessage(CheckMessage.MessageTypes.Error, "Output " + outputName + " is not defined in variables list.", state));
                        }
                    }
                }
            }
        }
Exemplo n.º 4
0
        /// <summary>
        /// Handle the message display after report generated
        /// </summary>
        /// <param name="messae"></param>
        /// <param name="generationOK"></param>
        public void OnReportGenerated(string fileName, TimeSpan timeSpan)
        {
            MessagesList.Add(new MessageItem {
                Message = Messages.msgReportGenerationSuccess, FileName = fileName
            });

#if DEBUG
            MessagesList.Add(new MessageItem {
                Message = string.Format("Generation duration : {0}", timeSpan)
            });
#endif
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.activity_default_messages);

            this.messagesList = FindViewById <MessagesList>(Resource.Id.messagesList);
            InitAdapter();

            MessageInput input = FindViewById <MessageInput>(Resource.Id.input);

            input.SetInputListener(this);
        }
 private void AddMessages(string message)
 {
     if (MessagesList.InvokeRequired)
     {
         Invoke(new Action(() =>
         {
             AddMessages(message);
         }));
         return;
     }
     MessagesList.AppendText($"{message ?? string.Empty}{Environment.NewLine}");
 }
Exemplo n.º 7
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="percentage"></param>
        public void OnStepDone(double percentage, string message, TimeSpan timeSpan)
        {
            ProgressPercentage += percentage;

#if DEBUG
            lock (MessagesList)
            {
                MessagesList.Add(new MessageItem {
                    Message = string.Format("{0}({1})", message, timeSpan), FileName = string.Empty
                });
            }
#endif
        }
Exemplo n.º 8
0
 public MainViewModel()
 {
     saveCommand = new RelayCommand(Save);
     messageList = new MessagesList();
     messageList.Load();
     if (messageList.MessageCount > 0)
     {
         CurrentMessage = messageList.GetLastMessage();
     }
     else
     {
         CurrentMessage = new Message();
     }
 }
Exemplo n.º 9
0
 private void CheckBook()
 {
     BuildObjectsTable();
     CheckVariablesUsage();
     if (ErrorsCount == 0 && WarningsCount == 0)
     {
         BuildBasicObjectsTrees();
         CheckObjectsInterMachines();
         Trees.ForEach(bot => MessagesList.AddRange(bot.Messages));
         if (ErrorsCount == 0 && WarningsCount == 0)
         {
             BuildVariablesStore();
         }
     }
 }
Exemplo n.º 10
0
        public void Navigate(View view)
        {
            switch (view)
            {
            case View.CategoryThreadsList:
            case View.CategoriesList:
                CategoriesPanel.Navigate(view);
                break;

            case View.PrivateChat:
            case View.PrivateChatsList:
                MessagesList.Navigate(view);
                break;
            }
        }
Exemplo n.º 11
0
 /// <summary>
 ///  Handle the message display when error occurs
 /// </summary>
 /// <param name="message"></param>
 public void OnErrorOccured(Exception exception)
 {
     if (exception is WebException)
     {
         MessagesList.Add(new MessageItem {
             Message = Messages.msgWSError, FileName = string.Empty
         });
     }
     else
     {
         MessagesList.Add(new MessageItem {
             Message = Messages.msgGenericError, FileName = string.Empty
         });
     }
 }
Exemplo n.º 12
0
        public ChatPage()
        {
            InitializeComponent();

            BindingContext = vm = new ChatBotViewModel();

            vm.Messages.CollectionChanged += (sender, e) =>
            {
                Device.BeginInvokeOnMainThread(() =>
                {
                    var target = vm.Messages[vm.Messages.Count - 1];
                    MessagesList.ScrollTo(target, ScrollToPosition.End, true);
                });
            };
        }
Exemplo n.º 13
0
 private void CheckObjectsInterMachines()
 {
     for (int i = 0; i < Trees.Count - 1; i++)
     {
         BasicObjectsTree tree1 = Trees[i];
         for (int j = i + 1; j < Trees.Count; j++)
         {
             BasicObjectsTree tree2 = Trees[j];
             var list = tree1.UsedObjects.Keys.Intersect(tree2.UsedObjects.Keys);
             foreach (DrawableObject obj in list)
             {
                 MessagesList.Add(new CheckMessage(CheckMessage.MessageTypes.Error, string.Format("Object '{0}' is shared between '{1}' and '{2}' machines.", obj.Name, tree1.Root.Name, tree2.Root.Name), obj));
             }
         }
     }
 }
Exemplo n.º 14
0
 public void AddMessage(Message msg)
 {
     if (msg != null)
     {
         //check message comes from current conversation user
         if (msg.Name == Contact.Name)
         {
             MessagesList.Add(msg);
             OnMessageReceived(this, msg);
         }
         else
         {
             //Store message in DB, so this can be retrieved later from Conversations page
         }
     }
 }
Exemplo n.º 15
0
        private void ScrollToBottom()
        {
            if (MessagesList.Items != null)
            {
                var selectedIndex = MessagesList.Items.Count - 1;
                if (selectedIndex < 0)
                {
                    return;
                }

                MessagesList.SelectedIndex = selectedIndex;
            }
            MessagesList.UpdateLayout();

            MessagesList.ScrollIntoView(MessagesList.SelectedItem);
        }
Exemplo n.º 16
0
        public MainPage()
        {
            ChatBotViewModel vm;

            InitializeComponent();


            BindingContext = vm = new ChatBotViewModel();


            vm.Messages.CollectionChanged += (sender, e) =>
            {
                var target = vm.Messages[vm.Messages.Count - 1];
                MessagesList.ScrollTo(target, ScrollToPosition.End, true);
            };
        }
Exemplo n.º 17
0
        public WpfApplication()
        {
            _myDispatcher   = Dispatcher.CurrentDispatcher;
            _messagesListVM = new MessagesListVM(this);

            _messagesListView = new MessagesList()
            {
                Width           = 420,
                LifetimeHandler = this,
                DataContext     = _messagesListVM
            };

            _icons[0] = new System.Drawing.Icon(System.Windows.Application.GetResourceStream(new Uri("pack://application:,,,/tray_icon.ico")).Stream);
            _icons[1] = new System.Drawing.Icon(System.Windows.Application.GetResourceStream(new Uri("pack://application:,,,/tray_icon_dot1.ico")).Stream);
            _icons[2] = new System.Drawing.Icon(System.Windows.Application.GetResourceStream(new Uri("pack://application:,,,/tray_icon_dot2.ico")).Stream);
            _icons[3] = new System.Drawing.Icon(System.Windows.Application.GetResourceStream(new Uri("pack://application:,,,/tray_icon_dot3.ico")).Stream);
            _icons[4] = new System.Drawing.Icon(System.Windows.Application.GetResourceStream(new Uri("pack://application:,,,/tray_icon_dot4.ico")).Stream);
            _icons[5] = new System.Drawing.Icon(System.Windows.Application.GetResourceStream(new Uri("pack://application:,,,/tray_icon_dot5.ico")).Stream);
            _icons[6] = new System.Drawing.Icon(System.Windows.Application.GetResourceStream(new Uri("pack://application:,,,/tray_icon_dot6.ico")).Stream);
            _icons[7] = new System.Drawing.Icon(System.Windows.Application.GetResourceStream(new Uri("pack://application:,,,/tray_icon_dot7.ico")).Stream);

            var rd = new ResourceDictionary()
            {
                Source = new Uri(";component/ContextMenuResources.xaml", UriKind.RelativeOrAbsolute)
            };

            _taskbarIcon = new TaskbarIcon()
            {
                Icon        = _icons[0],
                ToolTipText = "CGB Post Build Helper",
                ContextMenu = (ContextMenu)rd["SysTrayMenu"]
            };

            var contextMenuActions = new ContextMenuActionsVM(this);

            _taskbarIcon.ContextMenu.DataContext = contextMenuActions;
            _taskbarIcon.LeftClickCommand        = new DelegateCommand(_ =>
            {
                ShowMessagesList();
            });
            _taskbarIcon.DoubleClickCommand = new DelegateCommand(_ =>
            {
                ShowMessagesList();
                contextMenuActions.ShowInstances.Execute(null);
            });
        }
Exemplo n.º 18
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="percentage"></param>
        /// <param name="message"></param>
        /// <param name="timeSpan"></param>
        public void OnStepDone(double percentage, string message, TimeSpan timeSpan)
        {
            ProgressPercentage += percentage;
#if DEBUG
            lock (MessagesList)
            {
                MessagesList.Add(new MessageItem {
                    Message = $"{message}({timeSpan})", FileName = string.Empty
                });
            }
#else
            lock (MessagesList)
            {
                MessagesList.Add(new MessageItem {
                    Message = $"{message}", FileName = string.Empty
                });
            }
#endif
        }
Exemplo n.º 19
0
        public MainWindow()
        {
            InitializeComponent();
            messages = new MessagesList();
            messagesList.ItemsSource = Messages;
            ((INotifyCollectionChanged)messagesList.Items).CollectionChanged += Message_CollectionChanged;

            messagesObs    = new MessagesObs();
            messageBuilder = new MessageBuilder(messages);

            SMSReceiver.AsynchronousSocketListener.AddMessagePushingListener(messagesObs.TrackBuffer);

            messagesObs.Subscribe(messageBuilder);

            socketThread = new Thread(() => SMSReceiver.AsynchronousSocketListener.StartListening());
            socketThread.Start();

            fullscreen = false;
        }
Exemplo n.º 20
0
        //public async Task ExecuteSelectFileToInsert()
        //{
        //    FileData filedata = await CrossFilePicker.Current.PickFile();

        //    //Getting the filename and the data info from the image picked
        //    FileName = filedata.FileName;
        //    FileData = filedata.DataArray;

        //    File newFile = new File(FileName, FileData);

        //    var MessageToPush = new MessageModel(UserLogged.UserName, newFile);

        //    var item = await client
        //      .Child("Chat")
        //      //.WithAuth("<Authentication Token>") // <-- Add Auth token if required. Auth instructions further down in readme.
        //      .PostAsync(MessageToPush);

        //    MessagesList.Add(MessageToPush);
        //}

        public async Task ExecuteSendMessageToChat()
        {
            var MessageToPush = new MessageModel(MessageText, UserLogged.UserName);
            //{
            //    Title = MessageText,
            //    MessageOwner = User.UserName
            //};

            //if (!InverseChat)
            //{
            //    ChatKey = UserLogged.UserName + "_" + SelectedIt.UserName;
            //}

            var item = await client
                       .Child(ChatKey) //Este Item va dentro del nodo:
                                       //.WithAuth("<Authentication Token>") // <-- Add Auth token if required. Auth instructions further down in readme.
                       .PostAsync(MessageToPush);

            MessagesList.Add(MessageToPush);
        }
Exemplo n.º 21
0
        // Handles messages from bot.
        async Task ReadBotMessagesAsync(DirectLineClient client, string conversationId)
        {
            // Optionally set watermark - this is last message id seen by bot. It is for paging.
            string watermark = null;

            while (true)
            {
                // Get all messages returned by bot.
                var convActivities = await client.Conversations.GetActivitiesAsync(conversationId, watermark);

                watermark = convActivities?.Watermark;

                // Get messages from your bot - From.Name should match your Bot Handle.
                var messagesFromBotText = from x in convActivities.Activities
                                          where x.From.Name == botHandle
                                          select x;

                // Iterate through all messages.
                foreach (Activity message in messagesFromBotText)
                {
                    message.Text = userName + message.Text;
                    await Windows.ApplicationModel.Core.CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal,
                                                                                                                () => {
                        // Add message to the list and update ListView source to display response on the UI.
                        if (!_messagesFromBot.Contains(message))
                        {
                            _messagesFromBot.Add(newActivity);                         // Adds user query to chat window.
                            _messagesFromBot.Add(message);                             // Adds bot reponse to chat window.
                        }
                        MessagesList.ItemsSource = _messagesFromBot;

                        // Auto-scrolls to last item in chat
                        MessagesList?.ScrollIntoView(MessagesList.Items[_messagesFromBot.Count - 1], ScrollIntoViewAlignment.Leading);
                    });
                }

                await Task.Delay(TimeSpan.FromSeconds(2)).ConfigureAwait(false);
            }
        }
Exemplo n.º 22
0
        /// <summary>
        /// Handle result of create lobby operation.
        /// </summary>
        /// <param name="result">The operation result.</param>
        /// <param name="ioFailure">Did IO failure happen?</param>
        void OnLobbyCreated(Steamworks.LobbyCreated_t result, bool ioFailure)
        {
            if (result.m_eResult != Steamworks.EResult.k_EResultOK || ioFailure)
            {
                Logger.Log($"Failed to create lobby. (result: {result.m_eResult}, io failure: {ioFailure})");

                MPGUI.Instance.ShowMessageBox($"Failed to create lobby due to steam error.\n{result.m_eResult}/{ioFailure}", () => {
                    MPController.Instance.LoadLevel("MainMenu");
                });
                return;
            }

            Logger.Debug($"Lobby has been created, lobby id: {result.m_ulSteamIDLobby}");
            MessagesList.AddMessage("Session started.", MessageSeverity.Info);

            // Setup local player.
            players[0] = new NetLocalPlayer(this, netWorld, Steamworks.SteamUser.GetSteamID());

            mode           = Mode.Host;
            state          = State.Playing;
            currentLobbyId = new Steamworks.CSteamID(result.m_ulSteamIDLobby);
        }
Exemplo n.º 23
0
        public Chat()
        {
            Title = "Я - " + (string)App.Current.Properties["Username"] + " для " + (string)App.Current.Properties["toUser"];
            InitializeComponent();
            viewModel           = new ChatViewModel(this);
            this.BindingContext = viewModel;

            Dictionary <string, string> responseJson = JsonConvert.DeserializeObject <Dictionary <string, string> >((string)App.Current.Properties["Token"]);
            HttpClient         client  = new HttpClient();
            HttpRequestMessage request = new HttpRequestMessage();

            request.RequestUri = new Uri("http://192.168.100.2:3000/Mobile/GetListOfMessagges?jwt=" + responseJson["access_token"] + "&toUser="******"toUser"]);
            request.Method     = HttpMethod.Post;
            request.Headers.Add("Accept", "application/json");
            HttpResponseMessage response = client.SendAsync(request).Result;

            if (response.StatusCode == HttpStatusCode.OK)
            {
                HttpContent jsonRespone          = response.Content;
                Dictionary <string, object> json = JsonConvert.DeserializeObject <Dictionary <string, object> >(jsonRespone.ReadAsStringAsync().Result);
                JArray a = (JArray)json["messages"];
                foreach (JObject b in a)
                {
                    var         z       = b.ToObject <Dictionary <string, string> >();
                    MessageData message = new MessageData
                    {
                        Message = z["contect"],
                        User    = z["user1Id"]
                    };
                    viewModel.Messages.Add(message);
                }
                ;
                var v = MessagesList.ItemsSource.Cast <object>().LastOrDefault();
                MessagesList.ScrollTo(v, ScrollToPosition.End, true);
            }
            ;
        }
Exemplo n.º 24
0
        private void BuildBasicObjectsTrees()
        {
            Trees           = new List <BasicObjectsTree>();
            GlobalObjects   = new List <IBasicGlobal>();
            BasicStatesList = new List <BasicState>();
            foreach (IGlobal global in Book.Globals)
            {
                switch (global)
                {
                case Origin origin:
                    if (origin.Father == null)
                    {
                        var basicObjectsTree = new BasicObjectsTree(origin.OwnerDraw.OwnerSheet, origin);
                        Trees.Add(basicObjectsTree);
                        if (!basicObjectsTree.AddStatesToList(BasicStatesList))
                        {
                            MessagesList.Add(new CheckMessage(CheckMessage.MessageTypes.Error, "There is one or more states used in diferent state machines.", null));
                        }
                        GlobalObjects.Add(basicObjectsTree);
                    }
                    break;

                case Relation indir:
                    GlobalObjects.Add(RelationsList.Find(bi => bi.Relation == indir));
                    break;

                case Equation eq:
                    GlobalObjects.Add(EquationsList.Find(be => be.Equation == eq));
                    break;
                }
            }
            if (Trees.Count == 0)
            {
                MessagesList.Add(new CheckMessage(CheckMessage.MessageTypes.Error, "There is not a valid state machine to check.", null));
            }
        }
Exemplo n.º 25
0
        /// <summary>
        /// Handle result of join lobby operation.
        /// </summary>
        /// <param name="result">The operation result.</param>
        /// <param name="ioFailure">Did IO failure happen?</param>
        void OnLobbyEnter(Steamworks.LobbyEnter_t result, bool ioFailure)
        {
            if (ioFailure || result.m_EChatRoomEnterResponse != (uint)Steamworks.EChatRoomEnterResponse.k_EChatRoomEnterResponseSuccess)
            {
                Logger.Error("Failed to join lobby. (reponse: {result.m_EChatRoomEnterResponse}, ioFailure: {ioFailure})");
                MPGUI.Instance.ShowMessageBox($"Failed to join lobby.\n(reponse: {result.m_EChatRoomEnterResponse}, ioFailure: {ioFailure})");
                return;
            }

            Logger.Debug("Entered lobby: " + result.m_ulSteamIDLobby);

            MessagesList.AddMessage("Entered lobby.", MessageSeverity.Info);

            // Setup host player.
            players.Add(0, new NetPlayer(this, netWorld, hostSteamID));
            Logger.Debug("Setup host player as ID: 0");

            mode           = Mode.Player;
            state          = State.LoadingGameWorld;
            currentLobbyId = new Steamworks.CSteamID(result.m_ulSteamIDLobby);

            ShowLoadingScreen(true);
            SendHandshake(players[0]);
        }
    private void updateMessage(string accTok, string endP, string updateMessages, bool read)
    {
        try
        {
            string contextURL = string.Empty;
            string messagesJSON = string.Empty;
            Stream dataStream;
            Message message;
            MessagesList messageList;
            List<Message> messages = new List<Message>();
            JavaScriptSerializer serializeJsonObject;
            contextURL = string.Empty + endP + "/myMessages/v2/messages";
            string[] messageIds = updateMessages.Split(',');
            foreach (String messageId in messageIds)
            {
                message = new Message();
                message.isUnread = Convert.ToBoolean(read);
                message.messageId = messageId;
                messages.Add(message);
            }
            messageList = new MessagesList();
            messageList.messages = messages;
            serializeJsonObject = new JavaScriptSerializer();
            messagesJSON = serializeJsonObject.Serialize(messageList);
            UTF8Encoding encoding = new UTF8Encoding();
            byte[] msgBytes = encoding.GetBytes(messagesJSON);
            HttpWebRequest updateMessageWebRequest = (HttpWebRequest)WebRequest.Create(contextURL);
            updateMessageWebRequest.Headers.Add("Authorization", "Bearer " + accTok);
            updateMessageWebRequest.Method = "PUT";
            updateMessageWebRequest.KeepAlive = true;
            updateMessageWebRequest.ContentType = "application/json";
            dataStream = updateMessageWebRequest.GetRequestStream();
            dataStream.Write(msgBytes, 0, msgBytes.Length);
            dataStream.Close();

            WebResponse deleteMessageWebResponse = updateMessageWebRequest.GetResponse();
            using (var stream = deleteMessageWebResponse.GetResponseStream())
            {
                updateMessageSuccessResponse = "Success";
            }
        }
        catch (WebException we)
        {
            string errorResponse = string.Empty;
            try
            {
                using (StreamReader sr2 = new StreamReader(we.Response.GetResponseStream()))
                {
                    errorResponse = sr2.ReadToEnd();
                    sr2.Close();
                }
                updateMessageErrorResponse = updateMessages + "@" + read + "@" + errorResponse;
            }
            catch
            {
                errorResponse = "Unable to get response";
                updateMessageErrorResponse = errorResponse;
            }
        }
        catch (Exception ex)
        {
            updateMessageErrorResponse = read + "@" + ex.Message;
            return;
        }
    }
Exemplo n.º 27
0
 /// <summary>
 ///
 /// </summary>
 public void OnSettingsSaved()
 {
     MessagesList.Add(new MessageItem {
         Message = Messages.msgSettingsSaved, FileName = string.Empty
     });
 }
Exemplo n.º 28
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="message"></param>
 public void OnServiceRemoved(string url)
 {
     MessagesList.Add(new MessageItem {
         Message = Messages.msgServiceRemoved, FileName = string.Empty
     });
 }
Exemplo n.º 29
0
 /// <summary>
 ///  Handle the message display after service tested (ping)
 /// </summary>
 /// <param name="url"></param>
 /// <param name="pingOK"></param>
 public void OnServiceChecked(string url, bool pingOK)
 {
     MessagesList.Add(new MessageItem {
         Message = (pingOK) ? Messages.msgPingServiceSuccess : Messages.msgPingServiceFailure, FileName = string.Empty
     });
 }
Exemplo n.º 30
0
        public void ScrollTo()
        {
            var v = MessagesList.ItemsSource.Cast <object>().LastOrDefault();

            MessagesList.ScrollTo(v, ScrollToPosition.End, true);
        }
Exemplo n.º 31
0
 private void AddMessageToList(Microsoft.Bot.Connector.DirectLine.Activity message)
 {
     MessagesList.Insert(0, message);
     Adapter.NotifyItemInserted(0);
     MessagesRecycler.ScrollToPosition(0);
 }