public void DslConverterProgressHandler(object sender, DslConverter.Info e) { laName.Text = e.Name + "\n" + e.SourceLanguage + " -> " + e.TargetLanguage; laWords.Text = e.WordCount.ToString(); laTranslations.Text = e.TranslationCount.ToString(); slProgress.Value = e.Progress * 100.0; }
private void ImportDsl(FileStream fs) { if (mDslConverter == null) { mDslConverter = new DslConverter(); mDslConverter.ProgressHandler += new EventHandler<DslConverter.Info>(DslConverterProgressHandler); } { using (Dictionary dict = Dictionary.Open(Dictionary.IsoConnectionString)) { mDslConverter.Import(fs, dict); } } }