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"); }); }
private void TextBlock_MouseLeftButtonUp_1(object sender, MouseButtonEventArgs e) { YandexTranslate.Translate(_ViewModel.Model.Message, (str) => { _ViewModel.Model.Message = str; _ViewModel.OnPropertyChanged("Model"); }); }
private void TextBlock_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e) { YandexTranslate.Translate(_ViewModel.Model.Settings.Name, (str) => { _ViewModel.Model.Settings.Name = str; _ViewModel.OnPropertyChanged("Model"); }); }
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); }); } }