Esempio n. 1
0
 /// <summary>
 /// Creates a HeronEditor given a CodeEditControl for the main document,
 /// a RichTextBox instance for error messages (e.g. parsing messages)
 /// and a MenuStrip.
 /// </summary>
 /// <param name="code"></param>
 /// <param name="output"></param>
 /// <param name="menu"></param>
 public HeronEditor(CodeEditControl code, RichTextBox output, MenuStrip menu)
 {
     prefs                  = new Preferences();
     this.code              = code;
     this.output            = output;
     this.menu              = menu;
     code.TextChanged      += new EventHandler(code_TextChanged);
     code.SelectionChanged += new EventHandler(code_SelectionChanged);
     timer.Interval         = 100;
     timer.Enabled          = true;
     timer.Tick            += new EventHandler(timer_Tick);
     lastMod                = DateTime.Now;
 }
Esempio n. 2
0
 /// <summary>
 /// Creates a HeronEditor given a CodeEditControl for the main document, 
 /// a RichTextBox instance for error messages (e.g. parsing messages)
 /// and a MenuStrip.
 /// </summary>
 /// <param name="code"></param>
 /// <param name="output"></param>
 /// <param name="menu"></param>
 public HeronEditor(CodeEditControl code, RichTextBox output, MenuStrip menu)
 {
     prefs = new Preferences();
     this.code = code;
     this.output = output;
     this.menu = menu;
     code.TextChanged += new EventHandler(code_TextChanged);
     code.SelectionChanged += new EventHandler(code_SelectionChanged);
     timer.Interval = 100;
     timer.Enabled = true;
     timer.Tick += new EventHandler(timer_Tick);
     lastMod = DateTime.Now;
 }