示例#1
0
 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);
     }
 }
示例#2
0
 void engine_Stopped(object sender, EngineStoppedEventArgs e)
 {
     engine = null;
     engine = PolyglotEngine.NewEngine();
     ModuleSelectionGroup.Enabled = true;
 }