Esempio n. 1
0
 private void Sqlchat_UpdateEvent(Endless_Development_Project_Studio.ChatsC msg)
 {
     SocketStatus.UpdateNewMessage();
     Dispatcher.Invoke(() =>
     {
         IC.Items.Add(new ChatItemViewModel {
             AvatarUrl = cts.GetServerData(msg.userid).FirstOrDefault().Account.Split('|')[1], message = msg.message, Date = msg.Date.Split(':')[0] + "/" + msg.Date.Split(':')[1] + "/" + msg.Date.Split(':')[2] + " " + msg.Date.Split(':')[3] + ":" + msg.Date.Split(':')[4] + ":" + msg.Date.Split(':')[5], Modify = msg.Modify, user = msg.user, Name = msg.user
         });
         SVroller.ScrollToEnd();
     });
 }
Esempio n. 2
0
 private void OutputNotification(ChangeType changeType, ChatsC entity)
 {
     MessageEvent?.Invoke(changeType, entity);
     Logger.ConsoleLogger.Log("SQL Debugger MessageEvent " + changeType + " " + entity.id);
 }