public PolyglotComposer() { InitializeComponent(); try { engine = PolyglotEngine.NewEngine(); engine.Stopped += engine_Stopped; } catch (ModuleImplementationException mie) { MessageBox.Show(mie.Message, "Module Implementation Exception", MessageBoxButtons.OK, MessageBoxIcon.Error); Environment.Exit(1); } }
void engine_Stopped(object sender, EngineStoppedEventArgs e) { engine = null; engine = PolyglotEngine.NewEngine(); ModuleSelectionGroup.Enabled = true; }