private void Comment_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     YandexTranslate.Translate(MainWindow.GamePortal.MasterOfDonate.DonateComment, (str) =>
     {
         MainWindow.GamePortal.MasterOfDonate.DonateComment = str;
         MainWindow.GamePortal.MasterOfDonate.OnPropertyChanged("DonateComment");
     });
 }
예제 #2
0
 private void TextBlock_MouseLeftButtonUp_1(object sender, MouseButtonEventArgs e)
 {
     YandexTranslate.Translate(_ViewModel.Model.Message, (str) =>
     {
         _ViewModel.Model.Message = str;
         _ViewModel.OnPropertyChanged("Model");
     });
 }
예제 #3
0
 private void TextBlock_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     YandexTranslate.Translate(_ViewModel.Model.Settings.Name, (str) =>
     {
         _ViewModel.Model.Settings.Name = str;
         _ViewModel.OnPropertyChanged("Model");
     });
 }
예제 #4
0
 private void TextBlock_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     if (_ViewModel.User.Api.TryGetValue("FIO", out string fio))
     {
         YandexTranslate.Translate(fio, (str) =>
         {
             _ViewModel.User.Api["FIO"] = str;
             MainWindow.GamePortal.UpdateTitle(_ViewModel.User);
         });
     }
 }