/// <summary> /// Translates the corresponding sub sequence, according to translation rules /// </summary> /// <param name="sender"></param> /// <param name="args"></param> public void TranslateHandler(object sender, EventArgs args) { ApplyTranslationRulesHandler applyTranslationRulesHandler = new ApplyTranslationRulesHandler(Item); ProgressDialog progress = new ProgressDialog("Applying translation rules", applyTranslationRulesHandler); progress.ShowDialog(GuiUtils.MdiWindow); }
/// <summary> /// Translates the corresponding sub sequence, according to translation rules /// </summary> /// <param name="sender"></param> /// <param name="args"></param> public void TranslateHandler(object sender, EventArgs args) { ApplyTranslationRulesHandler applyTranslationRulesHandler = new ApplyTranslationRulesHandler(Item); ProgressDialog progress = new ProgressDialog("Applying translation rules", applyTranslationRulesHandler); progress.ShowDialog(MainWindow); MainWindow.RefreshModel(); }