예제 #1
0
        private void OnSendWrestlingInfoExecute(object obj)
        {
            //MyMessages.Add(new MyMessage { Name = AgeText.ToString(), Message = MollyText });

            var wrestlersFight = new WrestlersFight();

            string messageText = JsonConvert.SerializeObject(wrestlersFight);

            _signalRHubSync.AddMessage(new MyMessage {
                Name = "WrestlingInfo", Message = messageText
            });
        }
 private void OnAddMessageExecute(object obj)
 {
     //MyMessages.Add(new MyMessage { Name = NameText, Message = MessageText });
     _signalRHubSync.AddMessage(new MyMessage {
         Name = NameText, Message = MessageText
     });
     MessageText = "";
     NameText    = "";
 }