Пример #1
0
 public Vm()
 {
     SendCommand = new RelayCommand(async o =>
     {
         using (var client = new ServerRef.Service1Client())
         {
             await client.SendMessageAsync(new DummyMessage { Message = Message, Time = DateTime.UtcNow });
         }
         Message = null;
     });
     Poll();
     SelectedLanguage = Languages.First();
 }
Пример #2
0
 public Vm()
 {
     SendCommand = new RelayCommand(async o =>
     {
         using (var client = new ServerRef.Service1Client())
         {
             await client.SendMessageAsync(new DummyMessage {
                 Message = Message, Time = DateTime.UtcNow
             });
         }
         Message = null;
     });
     Poll();
     SelectedLanguage = Languages.First();
 }