private void Open( string filePath ) { Task = TranslateTask.LoadTranslateTask( filePath ); WebBrowser.Navigate( Task.Translate() ); DataView.ItemsSource = Task.Terms; }
private void Open(string filePath) { Task = TranslateTask.LoadTranslateTask(filePath); WebBrowser.Navigate(Task.Translate()); DataView.DataContext = Task; DataView.Resources["CandidateTermsConverter"].CastTo <CandidateTermsConverter>().Task = Task; TranslationProgress.Maximum = Task.Terms.Length; FilenameTextBlock.Text = filePath; TranslationProgress.Value = Task.Terms.Count(t => t.SourceTerm != t.TranslatedTerm && !string.IsNullOrWhiteSpace(t.TranslatedTerm)); }
private void Open( string filePath ) { Task = TranslateTask.LoadTranslateTask( filePath ); WebBrowser.Navigate( Task.Translate() ); DataView.DataContext = Task; DataView.Resources["CandidateTermsConverter"].CastTo<CandidateTermsConverter>().Task = Task; TranslationProgress.Maximum = Task.Terms.Length; FilenameTextBlock.Text = filePath; TranslationProgress.Value = Task.Terms.Count( t => t.SourceTerm != t.TranslatedTerm && !string.IsNullOrWhiteSpace( t.TranslatedTerm ) ); }
private void Open(string filePath) { Task = TranslateTask.LoadTranslateTask(filePath); WebBrowser.Navigate(Task.Translate()); DataView.ItemsSource = Task.Terms; }