예제 #1
0
    private void Open( string filePath )
    {

      Task = TranslateTask.LoadTranslateTask( filePath );
      WebBrowser.Navigate( Task.Translate() );
      DataView.ItemsSource = Task.Terms;

    }
예제 #2
0
        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));
        }
예제 #3
0
    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 ) );


    }
예제 #4
0
 private void Open(string filePath)
 {
     Task = TranslateTask.LoadTranslateTask(filePath);
     WebBrowser.Navigate(Task.Translate());
     DataView.ItemsSource = Task.Terms;
 }