private void openToolStripMenuItem_Click(object sender, EventArgs e) { Coloring.counter = 0; MenuItemEvents.OpenFile(); if (Coloring.counter == 0) { Coloring.DoFirstColoring(); } }
public static void Init(RichTextBox editor, RichTextBox errorLog, ListBox suggestionBox) { Utility.Init(editor, errorLog, suggestionBox); KeyEventsHandler.Init(editor, errorLog, suggestionBox); TokenGenerator.InitBox(editor); Highlighter.Init(editor); SuggestionProvider.InitSuggestionProvider(new List <string>(), suggestionBox, editor); Coloring.InitColoring(editor); Helper.Init(); MenuItemEvents.Init(editor); }
public static void EditorMulitpleKeyPressHandler(Keys key) { switch (key) { case Keys.K: Utility.CommentCode(); break; case Keys.S: MenuItemEvents.SaveFile(); break; case Keys.O: MenuItemEvents.OpenFile(); break; case Keys.R: MenuItemEvents.Run(); break; } }
private void runToolStripMenuItem_Click(object sender, EventArgs e) { MenuItemEvents.Run(); }
private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { MenuItemEvents.About(); }
private void saveToolStripMenuItem_Click(object sender, EventArgs e) { MenuItemEvents.SaveFile(); }
private void newToolStripMenuItem_Click(object sender, EventArgs e) { MenuItemEvents.ClearEditor(); }